diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2011-12-23 18:07:59 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2012-01-02 14:53:17 +0100 |
commit | 2ef61fa2c0f8f6f3668fa480d999a2a6b308961b (patch) | |
tree | 26f108e1e17721d06c2e9a0c1a0a5bc08451bec7 /Makefile | |
parent | 5d40dce0df8ee7e25d9013f90e37f3e8a58235fb (diff) | |
download | barebox-2ef61fa2c0f8f6f3668fa480d999a2a6b308961b.tar.gz barebox-2ef61fa2c0f8f6f3668fa480d999a2a6b308961b.tar.xz |
Makefile: disable unused-but-set-variable warning
This produces too many false positives.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -450,6 +450,10 @@ endif # Force gcc to behave correct even for buggy distributions CFLAGS += $(call cc-option, -fno-stack-protector) +# This warning generated too much noise in a regular build. +# Use make W=1 to enable this warning (see scripts/Makefile.build) +CFLAGS += $(call cc-disable-warning, unused-but-set-variable) + # 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) |