aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorDave Jones <davej@redhat.com>2011-04-21 17:28:13 -0400
committerMichal Marek <mmarek@suse.cz>2011-04-29 10:58:14 -0400
commitaf0e5d565d2fffcd97d1e2d89669d627cc04e8b8 (patch)
tree7b2ca1890e85b295215cc4af04155f095f69928a /Makefile
parentf07726048d599acd6bac438e304645a78db753c0 (diff)
kbuild: Disable -Wunused-but-set-variable for gcc 4.6.0
Disable the new -Wunused-but-set-variable that was added in gcc 4.6.0 It produces more false positives than useful warnings. This can still be enabled using W=1 Signed-off-by: Dave Jones <davej@redhat.com> Acked-by: Sam Ravnborg <sam@ravnborg.org> Tested-by: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: Michal Marek <mmarek@suse.cz>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 4 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