diff --git a/Makefile b/Makefile index b6e4c0c1d..d96fc8843 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)