aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/generic/patches-2.6.32/033-x86_unused_variables.patch
blob: dd8e147fbc139a49da6dbf1385d2f14a2400365e (plain)
1
2
3
4
5
6
7
8
9
10
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)) {				\