]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
column: fix compiler warning for non-widechar compilation
authorKarel Zak <kzak@redhat.com>
Thu, 20 Mar 2025 10:53:59 +0000 (11:53 +0100)
committerKarel Zak <kzak@redhat.com>
Thu, 20 Mar 2025 10:55:50 +0000 (11:55 +0100)
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 <kzak@redhat.com>
text-utils/column.c

index 470c2729a94d3e5d4d7b6838e9d5f816a2dce932..d67251648fc04c9e2efcc9aab459c500b3e64a8b 100644 (file)
@@ -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;