summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDave Jones <davej@redhat.com>2011-04-21 17:28:13 -0400
committerPaul Gortmaker <paul.gortmaker@windriver.com>2012-08-17 15:35:54 -0400
commit614c50ec7dfa104010a950c41984d021d8bcea88 (patch)
tree201c04fae3a47675951bd712b1e3d732a1e018ae /Makefile
parent51fce51d3a8a1e5a0082b62fbf5d1c46836bd577 (diff)
downloadlwn-614c50ec7dfa104010a950c41984d021d8bcea88.tar.gz
lwn-614c50ec7dfa104010a950c41984d021d8bcea88.zip
kbuild: Disable -Wunused-but-set-variable for gcc 4.6.0
commit af0e5d565d2fffcd97d1e2d89669d627cc04e8b8 upstream. 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> Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 25a8f63322d8..e9fafd059cc1 100644
--- a/Makefile
+++ b/Makefile
@@ -547,6 +547,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