9
0
Fork 0

Makefile: disable unused-but-set-variable warning

This produces too many false positives.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Sascha Hauer 2011-12-23 18:07:59 +01:00
parent 5d40dce0df
commit 2ef61fa2c0
1 changed files with 4 additions and 0 deletions

View File

@ -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)