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:
Darryl L. Miles 2024-10-04 17:10:13 +01:00 committed by Tim Edwards
parent bd75ddf32c
commit b654647fdc
1 changed files with 2 additions and 0 deletions

View File

@ -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;