projects
/
open-adventure.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cbf03c4
)
Tell the compiler not to warn about legitimate case fallthroughs.
254/head
author
Jason S. Ninneman
<jsn@mbar.us>
Wed, 19 Jul 2017 16:47:20 +0000
(09:47 -0700)
committer
Jason S. Ninneman
<jsn@mbar.us>
Wed, 19 Jul 2017 16:47:20 +0000
(09:47 -0700)
actions.c
patch
|
blob
|
history
diff --git
a/actions.c
b/actions.c
index e9e7b705e3a09a2de045cc90bfe640e3690b7f76..df6bc2e3c215cb00338f7f8a54cdc9cd5990e47c 100644
(file)
--- a/
actions.c
+++ b/
actions.c
@@
-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);