summaryrefslogtreecommitdiffstats
path: root/larn/monster.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 /larn/monster.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 'larn/monster.c')
-rw-r--r--larn/monster.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/larn/monster.c b/larn/monster.c
index 35a329e5..9f19f39f 100644
--- a/larn/monster.c
+++ b/larn/monster.c
@@ -1,4 +1,4 @@
-/* $NetBSD: monster.c,v 1.18 2012/06/19 05:30:43 dholland Exp $ */
+/* $NetBSD: monster.c,v 1.19 2019/02/03 03:19:25 mrg Exp $ */
/*
* monster.c Larn is copyrighted 1986 by Noah Morgan.
@@ -100,7 +100,7 @@
*/
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: monster.c,v 1.18 2012/06/19 05:30:43 dholland Exp $");
+__RCSID("$NetBSD: monster.c,v 1.19 2019/02/03 03:19:25 mrg Exp $");
#endif /* not lint */
#include <string.h>
@@ -1011,20 +1011,28 @@ dirsub(int *x, int *y)
switch (ttgetch()) {
case 'b':
i++;
+ /* FALLTHROUGH */
case 'n':
i++;
+ /* FALLTHROUGH */
case 'y':
i++;
+ /* FALLTHROUGH */
case 'u':
i++;
+ /* FALLTHROUGH */
case 'h':
i++;
+ /* FALLTHROUGH */
case 'k':
i++;
+ /* FALLTHROUGH */
case 'l':
i++;
+ /* FALLTHROUGH */
case 'j':
i++;
+ /* FALLTHROUGH */
goto out;
};
out: