From 0e28ab361375036f62dbba9d589576d38f43f157 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Thu, 20 Mar 2025 11:53:59 +0100 Subject: [PATCH] column: fix compiler warning for non-widechar compilation MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit text-utils/column.c: In function ‘ansi_esc_width’: text-utils/column.c:212:17: warning: case label value exceeds maximum value for type [-Wswitch-outside-range] Signed-off-by: Karel Zak --- text-utils/column.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/text-utils/column.c b/text-utils/column.c index 470c2729a..d67251648 100644 --- a/text-utils/column.c +++ b/text-utils/column.c @@ -209,7 +209,9 @@ static inline size_t ansi_esc_width(ansi_esc_states *state, size_t *found, const *found += chw; break; case 0x7: // APC/OSC/OSC8-Links ends with BEL +#ifdef HAVE_WIDECHAR case 0x9c: // APC/DCS/DM ends with ST (String Terminator) +#endif break; default: *found += chw; -- 2.47.3