summaryrefslogtreecommitdiffstats
path: root/phantasia/fight.c
diff options
context:
space:
mode:
authormrg <mrg@NetBSD.org>2019-02-03 03:19:25 +0000
committermrg <mrg@NetBSD.org>2019-02-03 03:19:25 +0000
commitdc6514954049bf3d7c993996025a81414423c89b (patch)
tree62f1a633c2e85d4bfcee4a574b5fa5c66ba88816 /phantasia/fight.c
parent2d315c293c005d7227edf8d5800e4f9dc2795baa (diff)
downloadbsdgames-darwin-dc6514954049bf3d7c993996025a81414423c89b.tar.gz
bsdgames-darwin-dc6514954049bf3d7c993996025a81414423c89b.tar.zst
bsdgames-darwin-dc6514954049bf3d7c993996025a81414423c89b.zip
- add or adjust /* FALLTHROUGH */ where appropriate
- add __unreachable() after functions that can return but won't in this case, and thus can't be marked __dead easily
Diffstat (limited to 'phantasia/fight.c')
-rw-r--r--phantasia/fight.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/phantasia/fight.c b/phantasia/fight.c
index 1f01b9de..0a1ab064 100644
--- a/phantasia/fight.c
+++ b/phantasia/fight.c
@@ -1,4 +1,4 @@
-/* $NetBSD: fight.c,v 1.13 2009/08/31 08:27:16 dholland Exp $ */
+/* $NetBSD: fight.c,v 1.14 2019/02/03 03:19:25 mrg Exp $ */
/*
* fight.c Phantasia monster fighting routines
@@ -1316,6 +1316,7 @@ awardtreasure(void)
/* fall through to treasure type 9 if
* no treasure from above */
+ /* FALLTHROUGH */
case 9: /* treasure type 9 */
switch (whichtreasure) {
case 1:
@@ -1326,8 +1327,8 @@ awardtreasure(void)
++Player.p_crowns;
break;
}
- /* fall through otherwise */
+ /* FALLTHROUGH */
case 2:
addstr("You've been blessed!\n");
Player.p_blessing = TRUE;