diff options
| author | Ron Yorston <rmy@pobox.com> | 2023-08-10 10:50:17 +0100 |
|---|---|---|
| committer | Ron Yorston <rmy@pobox.com> | 2023-08-10 10:50:17 +0100 |
| commit | dc5cdc79c18b2e0723f899a504bdfa3f751d422f (patch) | |
| tree | ec16374eb5cfffe1e43b8ba717ac304bcbf12eec | |
| parent | c6b150a81e83872b74573fd49e8ab361fa5a454b (diff) | |
| download | busybox-w32-dc5cdc79c18b2e0723f899a504bdfa3f751d422f.tar.gz busybox-w32-dc5cdc79c18b2e0723f899a504bdfa3f751d422f.tar.bz2 busybox-w32-dc5cdc79c18b2e0723f899a504bdfa3f751d422f.zip | |
libbb: silence compiler warnings
| -rw-r--r-- | libbb/lineedit.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libbb/lineedit.c b/libbb/lineedit.c index 54f0edef0..316c53f64 100644 --- a/libbb/lineedit.c +++ b/libbb/lineedit.c | |||
| @@ -1330,6 +1330,7 @@ static NOINLINE void input_tab(smallint *lastWasTab) | |||
| 1330 | # if ENABLE_PLATFORM_MINGW32 | 1330 | # if ENABLE_PLATFORM_MINGW32 |
| 1331 | int chosen_index = 0; | 1331 | int chosen_index = 0; |
| 1332 | int chosen_sens = FALSE; | 1332 | int chosen_sens = FALSE; |
| 1333 | # if !ENABLE_UNICODE_SUPPORT | ||
| 1333 | /* | 1334 | /* |
| 1334 | * FIXME: the next three vars are unused with ENABLE_UNICODE_SUPPORT | 1335 | * FIXME: the next three vars are unused with ENABLE_UNICODE_SUPPORT |
| 1335 | * because the mingw code which uses them to update a tab-completion | 1336 | * because the mingw code which uses them to update a tab-completion |
| @@ -1339,6 +1340,7 @@ static NOINLINE void input_tab(smallint *lastWasTab) | |||
| 1339 | unsigned orig_pfx_len; | 1340 | unsigned orig_pfx_len; |
| 1340 | char *target; | 1341 | char *target; |
| 1341 | const char *source; | 1342 | const char *source; |
| 1343 | # endif | ||
| 1342 | # define first_match 0 | 1344 | # define first_match 0 |
| 1343 | # else | 1345 | # else |
| 1344 | # define chosen_index 0 | 1346 | # define chosen_index 0 |
| @@ -1408,7 +1410,7 @@ static NOINLINE void input_tab(smallint *lastWasTab) | |||
| 1408 | { | 1410 | { |
| 1409 | const char *e = match_buf + strlen(match_buf); | 1411 | const char *e = match_buf + strlen(match_buf); |
| 1410 | const char *s = e - match_pfx_len; | 1412 | const char *s = e - match_pfx_len; |
| 1411 | # if ENABLE_PLATFORM_MINGW32 | 1413 | # if ENABLE_PLATFORM_MINGW32 && !ENABLE_UNICODE_SUPPORT |
| 1412 | orig_pfx_len = match_pfx_len; | 1414 | orig_pfx_len = match_pfx_len; |
| 1413 | # endif | 1415 | # endif |
| 1414 | while (s < e) | 1416 | while (s < e) |
