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 --- rogue/play.c | 5 +++-- rogue/room.c | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) (limited to 'rogue') diff --git a/rogue/play.c b/rogue/play.c index 88245384..04f8a89f 100644 --- a/rogue/play.c +++ b/rogue/play.c @@ -1,4 +1,4 @@ -/* $NetBSD: play.c,v 1.9 2008/01/14 03:50:02 dholland Exp $ */ +/* $NetBSD: play.c,v 1.10 2019/02/03 03:19:25 mrg Exp $ */ /* * Copyright (c) 1988, 1993 @@ -37,7 +37,7 @@ #if 0 static char sccsid[] = "@(#)play.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: play.c,v 1.9 2008/01/14 03:50:02 dholland Exp $"); +__RCSID("$NetBSD: play.c,v 1.10 2019/02/03 03:19:25 mrg Exp $"); #endif #endif /* not lint */ @@ -219,6 +219,7 @@ CH: break; case 'Q': quit(0); + __unreachable(); case '0': case '1': case '2': diff --git a/rogue/room.c b/rogue/room.c index 0071489f..7a75499c 100644 --- a/rogue/room.c +++ b/rogue/room.c @@ -1,4 +1,4 @@ -/* $NetBSD: room.c,v 1.13 2009/08/12 08:44:45 dholland Exp $ */ +/* $NetBSD: room.c,v 1.14 2019/02/03 03:19:25 mrg Exp $ */ /* * Copyright (c) 1988, 1993 @@ -37,7 +37,7 @@ #if 0 static char sccsid[] = "@(#)room.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: room.c,v 1.13 2009/08/12 08:44:45 dholland Exp $"); +__RCSID("$NetBSD: room.c,v 1.14 2019/02/03 03:19:25 mrg Exp $"); #endif #endif /* not lint */ @@ -571,6 +571,7 @@ CH: opt_go(++i); break; } + /* FALLTHROUGH */ default: if (options[i].is_bool) { sound_bell(); -- cgit v1.2.3-56-ge451