aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDave Jones <davej@redhat.com>2011-04-21 17:28:13 -0400
committerWilly Tarreau <w@1wt.eu>2012-02-11 15:40:52 +0100
commitda0acbfbf94229fb2e3cb569d62671d3273939ae (patch)
treefd1b61be705091cea55257163e7a6eac6c5402a7 /Makefile
parent89a58f0b97d2fbd038d1ee0f7779c413d75ef28d (diff)
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 [gregkh - No it can not for 2.6.32, but we don't care] 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: Greg Kroah-Hartman <gregkh@suse.de> Signed-off-by: Willy Tarreau <w@1wt.eu>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 988dff7e803..97f38c9b105 100644
--- a/Makefile
+++ b/Makefile
@@ -530,6 +530,9 @@ endif
# Arch Makefiles may override this setting
KBUILD_CFLAGS += $(call cc-option, -fno-stack-protector)
+# 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