commit 1e48df388e93bd8b2e44277923bdd6bfdb044ae0
parent d477775871413391180974da05390cc723473f66
Author: Benno Schulenberg <bensberg@telfort.nl>
Date: Tue, 11 Jun 2019 14:24:30 +0200
build: avoid a warning when using --disable-utf8
Diffstat:
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/winio.c b/src/winio.c
@@ -1925,8 +1925,6 @@ char *display_string(const char *buf, size_t column, size_t span,
}
while (*buf != '\0' && (column < beyond || mbwidth(buf) == 0)) {
- int charlength, charwidth;
-
/* A plain printable ASCII character is one byte, one column. */
if ((signed char)*buf > 0x20 && *buf != DEL_CODE) {
converted[index++] = *(buf++);
@@ -1979,6 +1977,7 @@ char *display_string(const char *buf, size_t column, size_t span,
}
#ifdef ENABLE_UTF8
+ int charlength, charwidth;
wchar_t wc;
/* Convert a multibyte character to a single code. */