From: Kumar Gala Date: Mon, 13 Jul 2009 09:24:01 -0500 Subject: [U-Boot] [PATCH] dlmalloc: Ignore gcc4.4 compiler warnings In-Reply-To: <1247495041-8605-2-git-send-email-galak@kernel.crashing.org> References: <1247495041-8605-1-git-send-email-galak@kernel.crashing.org> <1247495041-8605-2-git-send-email-galak@kernel.crashing.org> Message-ID: <1247495041-8605-3-git-send-email-galak@kernel.crashing.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de The version of dlmalloc we are using generates a fair number of warnings of the following form: warning: dereferencing pointer '({anonymous})' does break strict-aliasing rules Trying to fix these is just paper taping over the issue and we really just need to look into a new malloc implementation. So we disable these particular warning checks for dlmalloc.c only. Signed-off-by: Kumar Gala --- common/Makefile | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/common/Makefile b/common/Makefile index c8e5d26..5b3490a 100644 --- a/common/Makefile +++ b/common/Makefile @@ -34,6 +34,7 @@ COBJS-y += console.o COBJS-y += command.o COBJS-y += devices.o COBJS-y += dlmalloc.o +CFLAGS_dlmalloc.o += -fno-strict-aliasing COBJS-y += exports.o COBJS-$(CONFIG_SYS_HUSH_PARSER) += hush.o COBJS-y += image.o -- 1.6.0.6