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:
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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue