Tell the compiler not to warn about legitimate case fallthroughs.
This commit is contained in:
parent
cbf03c43a8
commit
8ac4a59a67
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue