mirror of
https://github.com/torvalds/linux.git
synced 2024-11-23 20:51:44 +00:00
1c4a4a4c84
When building with automatic stack variable initialization, GCC 12
complains about variables defined outside of switch case statements.
Move the variable into the case that uses it, which silences the warning:
arch/powerpc/xmon/xmon.c: In function ‘bpt_cmds’:
arch/powerpc/xmon/xmon.c:1529:13: warning: statement will never be executed [-Wswitch-unreachable]
1529 | int mode;
| ^~~~
Fixes:
|
||
---|---|---|
.. | ||
ansidecl.h | ||
dis-asm.h | ||
Makefile | ||
nonstdio.c | ||
nonstdio.h | ||
ppc-dis.c | ||
ppc-opc.c | ||
ppc.h | ||
spr_access.S | ||
spu-dis.c | ||
spu-insns.h | ||
spu-opc.c | ||
spu.h | ||
xmon_bpts.h | ||
xmon_bpts.S | ||
xmon.c |