summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 0fe927403d..5a7fd5f8a1 100644
--- a/Makefile
+++ b/Makefile
@@ -301,8 +301,7 @@ CPPFLAGS := -D__KERNEL__ -D__BAREBOX__ $(LINUXINCLUDE) -fno-builtin -ffre
CFLAGS := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \
-Werror-implicit-function-declaration \
- -fno-strict-aliasing -fno-common -Os -pipe \
- -fno-delete-null-pointer-checks
+ -fno-strict-aliasing -fno-common -Os -pipe
AFLAGS := -D__ASSEMBLY__
LDFLAGS_barebox := -Map barebox.map
@@ -457,6 +456,8 @@ CFLAGS += $(call cc-disable-warning, unused-but-set-variable)
CFLAGS += $(call cc-disable-warning, trampolines)
+CFLAGS += $(call cc-option, -fno-delete-null-pointer-checks,)
+
# arch Makefile may override CC so keep this after arch Makefile is included
NOSTDINC_FLAGS += -nostdinc -isystem $(shell $(CC) -print-file-name=include)
CHECKFLAGS += $(NOSTDINC_FLAGS)