mirror of
https://github.com/RTimothyEdwards/magic.git
synced 2026-10-06 09:53:00 +02:00
PlowTest.c: warning: enumeration value 'PC_ERROR' not handled in switch
False positive. Added no-op case statement, but code above looks the case should never execute due return from function. GCC14 -Wall cleanup series [-Wswitch]
This commit is contained in:
committed by
Tim Edwards
parent
bd75ddf32c
commit
b654647fdc
@@ -162,6 +162,8 @@ PlowTest(w, cmd)
|
||||
for (n = 0; plowCmds[n].p_name; n++)
|
||||
TxPrintf("%-15s %s\n", plowCmds[n].p_name, plowCmds[n].p_help);
|
||||
break;
|
||||
case PC_ERROR: /* exhaustive switch on enum compiler warning */
|
||||
break;
|
||||
case PC_RANDOM:
|
||||
PlowRandomTest(def);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user