From: Karel Zak Date: Thu, 20 Mar 2025 10:53:59 +0000 (+0100) Subject: column: fix compiler warning for non-widechar compilation X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0e28ab361375036f62dbba9d589576d38f43f157;p=thirdparty%2Futil-linux.git column: fix compiler warning for non-widechar compilation 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 --- 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;