Skip to content

Commit 23b764d

Browse files
Andi KleenIngo Molnar
authored andcommitted
percpu, x86: Avoid warnings of unused variables in per cpu
Avoid hundreds of warnings with a gcc 4.6 -Wall build. Signed-off-by: Andi Kleen <ak@linux.intel.com> Acked-by: Tejun Heo <tj@kernel.org> Signed-off-by: Ingo Molnar <mingo@elte.hu>
1 parent a4384df commit 23b764d

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎arch/x86/include/asm/percpu.h‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ do { \
7777
if (0) { \
7878
pto_T__ pto_tmp__; \
7979
pto_tmp__ = (val); \
80+
(void)pto_tmp__; \
8081
} \
8182
switch (sizeof(var)) { \
8283
case 1: \
@@ -115,6 +116,7 @@ do { \
115116
if (0) { \
116117
pao_T__ pao_tmp__; \
117118
pao_tmp__ = (val); \
119+
(void)pao_tmp__; \
118120
} \
119121
switch (sizeof(var)) { \
120122
case 1: \

0 commit comments

Comments
 (0)