summaryrefslogtreecommitdiffstats
path: root/battlestar
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 /battlestar
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 'battlestar')
-rw-r--r--battlestar/command2.c5
-rw-r--r--battlestar/command3.c6
2 files changed, 7 insertions, 4 deletions
diff --git a/battlestar/command2.c b/battlestar/command2.c
index 158e546a..530bcfde 100644
--- a/battlestar/command2.c
+++ b/battlestar/command2.c
@@ -1,4 +1,4 @@
-/* $NetBSD: command2.c,v 1.3 2005/07/01 06:04:54 jmc Exp $ */
+/* $NetBSD: command2.c,v 1.4 2019/02/03 03:19:25 mrg Exp $ */
/*
* Copyright (c) 1983, 1993
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)com2.c 8.2 (Berkeley) 4/28/95";
#else
-__RCSID("$NetBSD: command2.c,v 1.3 2005/07/01 06:04:54 jmc Exp $");
+__RCSID("$NetBSD: command2.c,v 1.4 2019/02/03 03:19:25 mrg Exp $");
#endif
#endif /* not lint */
@@ -271,6 +271,7 @@ murder(void)
puts("Your fantasy is over.");
die();
}
+ /* FALLTHROUGH */
case -1:
puts("Kill what?");
break;
diff --git a/battlestar/command3.c b/battlestar/command3.c
index 62b09d23..f4ccb6d9 100644
--- a/battlestar/command3.c
+++ b/battlestar/command3.c
@@ -1,4 +1,4 @@
-/* $NetBSD: command3.c,v 1.4 2018/02/04 08:48:05 mrg Exp $ */
+/* $NetBSD: command3.c,v 1.5 2019/02/03 03:19:25 mrg Exp $ */
/*
* Copyright (c) 1983, 1993
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)com3.c 8.2 (Berkeley) 4/28/95";
#else
-__RCSID("$NetBSD: command3.c,v 1.4 2018/02/04 08:48:05 mrg Exp $");
+__RCSID("$NetBSD: command3.c,v 1.5 2019/02/03 03:19:25 mrg Exp $");
#endif
#endif /* not lint */
@@ -145,9 +145,11 @@ bury(void)
case NORMGOD:
printf("She screams as you wrestle her into ");
puts("the hole.");
+ /* FALLTHROUGH */
case TIMER:
power += 7;
ego -= 10;
+ /* FALLTHROUGH */
case AMULET:
case MEDALION:
case TALISMAN: