
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 galak@kernel.crashing.org --- 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