From c7451dbf9a5c2476e0fd77f28fe502cc89ceb77d Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Wed, 8 Jun 2011 21:04:29 +0200 Subject: [PATCH] turn off noisy warning with gcc-4.6 --- kernel-2.6.spec | 2 ++ linux-2.6-10001-gcc-4.6-warnoff.patch | 12 ++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 linux-2.6-10001-gcc-4.6-warnoff.patch diff --git a/kernel-2.6.spec b/kernel-2.6.spec index e24c2878c..a68db4c4e 100644 --- a/kernel-2.6.spec +++ b/kernel-2.6.spec @@ -683,6 +683,7 @@ Patch19: linux-2.6-660-nmi-watchdog-default.patch Patch20: linux-2.6-680-htb-hysteresis-tso.patch Patch10000: linux-2.6-10000-gcc-4.5.patch +Patch10001: linux-2.6-10001-gcc-4.6-warnoff.patch # empty final patch file to facilitate testing of kernel patches Patch999999: linux-kernel-test.patch @@ -996,6 +997,7 @@ ApplyPatch linux-2.6-650-hangcheck-reboot.patch ApplyPatch linux-2.6-660-nmi-watchdog-default.patch ApplyPatch linux-2.6-680-htb-hysteresis-tso.patch ApplyPatch linux-2.6-10000-gcc-4.5.patch +ApplyPatch linux-2.6-10001-gcc-4.6-warnoff.patch #### Planet-Lab #### ApplyOptionalPatch linux-kernel-test.patch diff --git a/linux-2.6-10001-gcc-4.6-warnoff.patch b/linux-2.6-10001-gcc-4.6-warnoff.patch new file mode 100644 index 000000000..5493f3612 --- /dev/null +++ b/linux-2.6-10001-gcc-4.6-warnoff.patch @@ -0,0 +1,12 @@ +--- a/Makefile 2011-06-08 20:54:07.000000000 +0200 ++++ b/Makefile 2011-06-08 20:53:19.000000000 +0200 +@@ -605,6 +605,9 @@ + # conserve stack if available + KBUILD_CFLAGS += $(call cc-option,-fconserve-stack) + ++# turn off the noise with gcc-4.6 ++KBUILD_CFLAGS += $(call cc-option, -Wno-unused-but-set-variable) ++ + # Add user supplied CPPFLAGS, AFLAGS and CFLAGS as the last assignments + # But warn user when we do so + warn-assign = \ -- 2.43.0