From 58d377e81e23cb78710d0fbe27c807a4cbf5507e Mon Sep 17 00:00:00 2001 From: PatR Date: Thu, 17 Jul 2025 16:29:27 -0700 Subject: [PATCH] uhitm.c warning fix From "Monsters trapped in pits cannot kick" two weeks ago. Avoid uhitm.c:5505:9: warning: unannotated fall-through between switch labels [-Wimplicit-fallthrough] Recent clang wants C23's [[fallthrough]] attribute rather than just the lint '/*FALLTHRU*/' comment. --- src/uhitm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/uhitm.c b/src/uhitm.c index 65b311e4c..cb85c63e3 100644 --- a/src/uhitm.c +++ b/src/uhitm.c @@ -1,4 +1,4 @@ -/* NetHack 3.7 uhitm.c $NHDT-Date: 1736575153 2025/01/10 21:59:13 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.461 $ */ +/* NetHack 3.7 uhitm.c $NHDT-Date: 1752823766 2025/07/17 23:29:26 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.477 $ */ /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */ /*-Copyright (c) Robert Patrick Rankin, 2012. */ /* NetHack may be freely redistributed. See license for details. */ @@ -5501,6 +5501,7 @@ hmonas(struct monst *mon) case AT_KICK: if (mattk->aatyp == AT_KICK && mtrapped_in_pit(&gy.youmonst)) continue; + FALLTHROUGH; /*FALLTHRU*/ case AT_BITE: case AT_STNG: