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