From dc6514954049bf3d7c993996025a81414423c89b Mon Sep 17 00:00:00 2001 From: mrg Date: Sun, 3 Feb 2019 03:19:25 +0000 Subject: - 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 --- phantasia/misc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'phantasia/misc.c') diff --git a/phantasia/misc.c b/phantasia/misc.c index 59785376..180d6137 100644 --- a/phantasia/misc.c +++ b/phantasia/misc.c @@ -1,4 +1,4 @@ -/* $NetBSD: misc.c,v 1.21 2011/09/01 07:18:50 plunky Exp $ */ +/* $NetBSD: misc.c,v 1.22 2019/02/03 03:19:25 mrg Exp $ */ /* * misc.c Phantasia miscellaneous support routines @@ -729,6 +729,7 @@ altercoordinates(double xnew, double ynew, int operation) ynew = Player.p_y - ROLL(1.0, 5.0); /* fall through for check */ + /* FALLTHROUGH */ case A_SPECIFIC: /* just move player */ if (Beyond && fabs(xnew) < D_BEYOND && fabs(ynew) < D_BEYOND) /* -- cgit v1.2.3-56-ge451