Tell the compiler not to warn about legitimate case fallthroughs.

This commit is contained in:
Jason S. Ninneman 2017-07-19 09:47:20 -07:00
parent cbf03c43a8
commit 8ac4a59a67

View file

@ -265,6 +265,7 @@ static int vbreak(verb_t verb, obj_t obj)
game.fixed[VASE] = IS_FIXED;
break;
}
/* FALLTHRU */
default:
speak(actions[verb].message);
}
@ -591,6 +592,7 @@ static int eat(verb_t verb, obj_t obj)
case INTRANSITIVE:
if (!HERE(FOOD))
return GO_UNKNOWN;
/* FALLTHRU */
case FOOD:
DESTROY(FOOD);
rspeak(THANKS_DELICIOUS);