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:
parent
5d40dce0df
commit
2ef61fa2c0
4
Makefile
4
Makefile
|
@ -450,6 +450,10 @@ endif
|
||||||
# Force gcc to behave correct even for buggy distributions
|
# Force gcc to behave correct even for buggy distributions
|
||||||
CFLAGS += $(call cc-option, -fno-stack-protector)
|
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
|
# arch Makefile may override CC so keep this after arch Makefile is included
|
||||||
NOSTDINC_FLAGS += -nostdinc -isystem $(shell $(CC) -print-file-name=include)
|
NOSTDINC_FLAGS += -nostdinc -isystem $(shell $(CC) -print-file-name=include)
|
||||||
CHECKFLAGS += $(NOSTDINC_FLAGS)
|
CHECKFLAGS += $(NOSTDINC_FLAGS)
|
||||||
|
|
Loading…
Reference in New Issue