aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile4
-rw-r--r--scripts/Makefile.build1
2 files changed, 5 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index e509cc704968..4527dc23a724 100644
--- a/Makefile
+++ b/Makefile
@@ -567,6 +567,10 @@ ifndef CONFIG_CC_STACKPROTECTOR
567KBUILD_CFLAGS += $(call cc-option, -fno-stack-protector) 567KBUILD_CFLAGS += $(call cc-option, -fno-stack-protector)
568endif 568endif
569 569
570# This warning generated too much noise in a regular build.
571# Use make W=1 to enable this warning (see scripts/Makefile.build)
572KBUILD_CFLAGS += $(call cc-option, -Wno-unused-but-set-variable)
573
570ifdef CONFIG_FRAME_POINTER 574ifdef CONFIG_FRAME_POINTER
571KBUILD_CFLAGS += -fno-omit-frame-pointer -fno-optimize-sibling-calls 575KBUILD_CFLAGS += -fno-omit-frame-pointer -fno-optimize-sibling-calls
572else 576else
diff --git a/scripts/Makefile.build b/scripts/Makefile.build
index 9c0c48127946..9fb19c0fbf8c 100644
--- a/scripts/Makefile.build
+++ b/scripts/Makefile.build
@@ -66,6 +66,7 @@ warning-1 += -Wmissing-format-attribute
66warning-1 += -Wmissing-prototypes 66warning-1 += -Wmissing-prototypes
67warning-1 += -Wold-style-definition 67warning-1 += -Wold-style-definition
68warning-1 += $(call cc-option, -Wmissing-include-dirs) 68warning-1 += $(call cc-option, -Wmissing-include-dirs)
69warning-1 += $(call cc-option, -Wunused-but-set-variable)
69 70
70warning-2 := -Waggregate-return 71warning-2 := -Waggregate-return
71warning-2 += -Wcast-align 72warning-2 += -Wcast-align