mirror of
git://git.sv.gnu.org/nano.git
synced 2024-11-26 14:51:36 +03:00
build: avoid a warning when using --disable-utf8
This commit is contained in:
parent
d477775871
commit
1e48df388e
@ -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. */
|
||||
|
Loading…
Reference in New Issue
Block a user