summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDave Jones <davej@redhat.com>2011-04-21 17:28:13 -0400
committerAndi Kleen <ak@linux.intel.com>2011-08-01 13:54:33 -0700
commitd247496cd6a6a936cee3e1b1a28ea5139515e156 (patch)
tree69506fe8643a536743eece165e6d40aa2d041527 /Makefile
parent4de01ac37194505a91082dc9e131c5fe32b7b527 (diff)
kbuild: Disable -Wunused-but-set-variable for gcc 4.6.0
[ upstream commit af0e5d565d2fffcd97d1e2d89669d627cc04e8b8 ] 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 [AK: dropped W=1 support in backport] 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: Andi Kleen <ak@linux.intel.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 5ade8188d821..1d483a728225 100644
--- a/Makefile
+++ b/Makefile
@@ -546,6 +546,9 @@ ifndef CONFIG_CC_STACKPROTECTOR
KBUILD_CFLAGS += $(call cc-option, -fno-stack-protector)
endif
+# This warning generated too much noise in a regular 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