From a26ad241b23bfa7f3cd7b0b821a41aa3c7e3b5d1 Mon Sep 17 00:00:00 2001 From: PatR Date: Thu, 29 Feb 2024 23:50:35 -0800 Subject: [PATCH] 'showvers' warning fix for curses The wishy-washy warning for case BL_VERS was "may fall through" when it always fell through, and there was no mention of the fact that the assignment had no effect because it was immediately overwritten by similar assignment for the fall through cases. It may have 'spacing = 2' rather than 1 at some point, but since that field is right justified it wouldn't make any difference. --- win/curses/cursstat.c | 1 - 1 file changed, 1 deletion(-) diff --git a/win/curses/cursstat.c b/win/curses/cursstat.c index 9a2e4bab3..3f53fd103 100644 --- a/win/curses/cursstat.c +++ b/win/curses/cursstat.c @@ -429,7 +429,6 @@ draw_horizontal(boolean border) spacing[fld] = (cap_and_hunger == 0); break; case BL_VERS: - spacing[fld] = 1; case BL_STR: case BL_HP: case BL_ENE: