[U-Boot] [RFC][PATCH 1/8] Fix gcc 4.4.1 compiler warning
Mike Frysinger
vapier at gentoo.org
Sat Sep 26 21:20:03 CEST 2009
On Saturday 26 September 2009 08:57:31 Graeme Russ wrote:
> ---
> common/Makefile | 4 ++++
> 1 files changed, 4 insertions(+), 0 deletions(-)
>
> diff --git a/common/Makefile b/common/Makefile
> index 3781738..7ea6e93 100644
> --- a/common/Makefile
> +++ b/common/Makefile
> @@ -178,6 +178,10 @@ $(obj)env_embedded.o: $(src)env_embedded.c
> $(obj)../tools/envcrc -DENV_CRC=$(shell $(obj)../tools/envcrc) \
> -c -o $@ $(src)env_embedded.c
>
> +$(obj)dlmalloc.o: $(src)dlmalloc.c $(obj)dlmalloc.o
> + $(CC) $(CFLAGS) -Wa,--no-warn -fno-strict-aliasing \
> + -c -o $@ $(src)dlmalloc.c
there's already patches floating around to fix this at the source level
but if your only goal is to add custom compiler flags, please use the per-
object CFLAGS support. this should work:
CFLAGS_dlmalloc.o += -Wa,--no-warn -fno-strict-aliasing
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20090926/7a9a67b3/attachment.pgp
More information about the U-Boot
mailing list