summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2011-12-23 18:07:59 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2012-01-02 14:53:17 +0100
commit2ef61fa2c0f8f6f3668fa480d999a2a6b308961b (patch)
tree26f108e1e17721d06c2e9a0c1a0a5bc08451bec7 /Makefile
parent5d40dce0df8ee7e25d9013f90e37f3e8a58235fb (diff)
downloadbarebox-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--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index b6e4c0c1d1..d96fc88433 100644
--- a/Makefile
+++ b/Makefile
@@ -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)