diff --git a/[refs] b/[refs] index 2d7cbacf1df2..b24d3fe88216 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: f07726048d599acd6bac438e304645a78db753c0 +refs/heads/master: af0e5d565d2fffcd97d1e2d89669d627cc04e8b8 diff --git a/trunk/Makefile b/trunk/Makefile index e509cc704968..4527dc23a724 100644 --- a/trunk/Makefile +++ b/trunk/Makefile @@ -567,6 +567,10 @@ ifndef CONFIG_CC_STACKPROTECTOR KBUILD_CFLAGS += $(call cc-option, -fno-stack-protector) endif +# This warning generated too much noise in a regular build. +# Use make W=1 to enable this warning (see scripts/Makefile.build) +KBUILD_CFLAGS += $(call cc-option, -Wno-unused-but-set-variable) + ifdef CONFIG_FRAME_POINTER KBUILD_CFLAGS += -fno-omit-frame-pointer -fno-optimize-sibling-calls else diff --git a/trunk/scripts/Makefile.build b/trunk/scripts/Makefile.build index 9c0c48127946..9fb19c0fbf8c 100644 --- a/trunk/scripts/Makefile.build +++ b/trunk/scripts/Makefile.build @@ -66,6 +66,7 @@ warning-1 += -Wmissing-format-attribute warning-1 += -Wmissing-prototypes warning-1 += -Wold-style-definition warning-1 += $(call cc-option, -Wmissing-include-dirs) +warning-1 += $(call cc-option, -Wunused-but-set-variable) warning-2 := -Waggregate-return warning-2 += -Wcast-align