From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mike Frysinger Date: Sat, 26 Sep 2009 15:20:03 -0400 Subject: [U-Boot] [RFC][PATCH 1/8] Fix gcc 4.4.1 compiler warning In-Reply-To: <1253969858-841-2-git-send-email-graeme.russ@gmail.com> References: <1253969858-841-1-git-send-email-graeme.russ@gmail.com> <1253969858-841-2-git-send-email-graeme.russ@gmail.com> Message-ID: <200909261520.04046.vapier@gentoo.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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