* [U-Boot] FDT warning: redefinition of `uintptr_t'
@ 2008-11-24 8:35 Wolfgang Denk
2008-11-24 13:15 ` [U-Boot] [PATCH] libfdt: Fix redefined uintptr_t warning for USE_HOSTCC Jerry Van Baren
0 siblings, 1 reply; 3+ messages in thread
From: Wolfgang Denk @ 2008-11-24 8:35 UTC (permalink / raw)
To: u-boot
Dear Jerry,
compiling U-Boot in an old OS environment (RedHat-7.3 :-) gives the
following warnigns from FDT:
include/libfdt_env.h:50: warning: redefinition of `uintptr_t'
/usr/include/stdint.h:129: warning: `uintptr_t' previously declared here
Could you please have a look? Thanks.
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Genitiv ins Wasser, weil's Dativ ist!
^ permalink raw reply [flat|nested] 3+ messages in thread
* [U-Boot] [PATCH] libfdt: Fix redefined uintptr_t warning for USE_HOSTCC
2008-11-24 8:35 [U-Boot] FDT warning: redefinition of `uintptr_t' Wolfgang Denk
@ 2008-11-24 13:15 ` Jerry Van Baren
2008-12-09 23:59 ` Wolfgang Denk
0 siblings, 1 reply; 3+ messages in thread
From: Jerry Van Baren @ 2008-11-24 13:15 UTC (permalink / raw)
To: u-boot
Compiling U-Boot in an old OS environment (RedHat-7.3 :-) gives the
following warnings from FDT:
include/libfdt_env.h:50: warning: redefinition of 'uintptr_t'
/usr/include/stdint.h:129: warning: 'uintptr_t' previously declared here
Fix: Protect the definition of uintptr_t when compiling on the host
system.
Signed-off-by: Gerald Van Baren <vanbaren@cideas.com>
---
On Mon, Nov 24, 2008 at 09:35:14AM +0100, Wolfgang Denk wrote:
> Dear Jerry,
>
> compiling U-Boot in an old OS environment (RedHat-7.3 :-) gives the
> following warnigns from FDT:
>
> include/libfdt_env.h:50: warning: redefinition of `uintptr_t'
> /usr/include/stdint.h:129: warning: `uintptr_t' previously declared here
>
>
> Could you please have a look? Thanks.
>
> Best regards,
>
> Wolfgang Denk
Dear Wolfgang,
Try this, it looks like a simple oversight. I'm not sure why we don't
see it on a "modern" ;-) linux.
Best regards,
gvb
include/libfdt_env.h | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/include/libfdt_env.h b/include/libfdt_env.h
index 355ebf2..ea474a5 100644
--- a/include/libfdt_env.h
+++ b/include/libfdt_env.h
@@ -47,6 +47,7 @@ extern struct fdt_header *working_fdt; /* Pointer to the working fdt */
#define cpu_to_fdt64(x) (x)
#endif
+#ifndef USE_HOSTCC
/*
* Types for `void *' pointers.
*
@@ -58,5 +59,6 @@ typedef unsigned long int uintptr_t;
#else
typedef unsigned int uintptr_t;
#endif
+#endif /* not USE_HOSTCC */
#endif /* _LIBFDT_ENV_H */
--
1.5.6.5
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [U-Boot] [PATCH] libfdt: Fix redefined uintptr_t warning for USE_HOSTCC
2008-11-24 13:15 ` [U-Boot] [PATCH] libfdt: Fix redefined uintptr_t warning for USE_HOSTCC Jerry Van Baren
@ 2008-12-09 23:59 ` Wolfgang Denk
0 siblings, 0 replies; 3+ messages in thread
From: Wolfgang Denk @ 2008-12-09 23:59 UTC (permalink / raw)
To: u-boot
Dear Jerry Van Baren,
In message <20081124131502.GA4739@cideas.com> you wrote:
> Compiling U-Boot in an old OS environment (RedHat-7.3 :-) gives the
> following warnings from FDT:
>
> include/libfdt_env.h:50: warning: redefinition of 'uintptr_t'
> /usr/include/stdint.h:129: warning: 'uintptr_t' previously declared here
>
> Fix: Protect the definition of uintptr_t when compiling on the host
> system.
>
> Signed-off-by: Gerald Van Baren <vanbaren@cideas.com>
Appied, thanks.
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
An expert is a person who avoids the small errors while sweeping on
to the grand fallacy.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-12-09 23:59 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-24 8:35 [U-Boot] FDT warning: redefinition of `uintptr_t' Wolfgang Denk
2008-11-24 13:15 ` [U-Boot] [PATCH] libfdt: Fix redefined uintptr_t warning for USE_HOSTCC Jerry Van Baren
2008-12-09 23:59 ` Wolfgang Denk
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox