[U-Boot] [PATCH] config.mk: Add -Wundef to CFLAGS
Masahiro Yamada
yamada.m at jp.panasonic.com
Tue Jul 30 04:57:05 CEST 2013
In U-boot source, some '#if' directives evaluate
undefined identifiers.
To find and fix them, this commit adds -Wundef to CFLAGS.
Signed-off-by: Masahiro Yamada <yamada.m at jp.panasonic.com>
---
config.mk | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/config.mk b/config.mk
index f71e145..7a92ae3 100644
--- a/config.mk
+++ b/config.mk
@@ -259,7 +259,7 @@ CPPFLAGS += -I$(TOPDIR)/include
CPPFLAGS += -fno-builtin -ffreestanding -nostdinc \
-isystem $(gccincdir) -pipe $(PLATFORM_CPPFLAGS)
-CFLAGS := $(CPPFLAGS) -Wall -Wstrict-prototypes
+CFLAGS := $(CPPFLAGS) -Wall -Wstrict-prototypes -Wundef
ifdef BUILD_TAG
CFLAGS += -DBUILD_TAG='"$(BUILD_TAG)"'
--
1.8.1.2
More information about the U-Boot
mailing list