From ff728c1e81e52958b554af731b219e578be52421 Mon Sep 17 00:00:00 2001 From: florian Date: Sun, 15 Apr 2012 18:53:39 +0000 Subject: [PATCH] [generic/2.6.32] silence an annoying x86 warning git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31293 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- .../generic/patches-2.6.32/033-x86_unused_variables.patch | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 target/linux/generic/patches-2.6.32/033-x86_unused_variables.patch diff --git a/target/linux/generic/patches-2.6.32/033-x86_unused_variables.patch b/target/linux/generic/patches-2.6.32/033-x86_unused_variables.patch new file mode 100644 index 0000000000..dd8e147fbc --- /dev/null +++ b/target/linux/generic/patches-2.6.32/033-x86_unused_variables.patch @@ -0,0 +1,11 @@ +--- a/arch/x86/include/asm/percpu.h ++++ b/arch/x86/include/asm/percpu.h +@@ -76,7 +76,7 @@ extern void __bad_percpu_size(void); + do { \ + typedef typeof(var) T__; \ + if (0) { \ +- T__ tmp__; \ ++ T__ tmp__ __maybe_unused; \ + tmp__ = (val); \ + } \ + switch (sizeof(var)) { \ -- 2.11.0