tweaks: avoid two unused variable warnings when NLS is disabled

Signed-off-by: Brand Huntsman <alpha@qzx.com>
master
Brand Huntsman 2018-05-22 21:17:27 -06:00 committed by Benno Schulenberg
parent 22663f8a2e
commit b5427ebb98
1 changed files with 4 additions and 1 deletions

View File

@ -676,8 +676,11 @@ int do_yesno_prompt(bool all, const char *msg)
const char *allstr = _("Aa");
while (response == -2) {
#ifdef ENABLE_NLS
char letter[MAXCHARLEN + 1];
int kbinput, index = 0;
int index = 0;
#endif
int kbinput;
if (!ISSET(NO_HELP)) {
char shortstr[MAXCHARLEN + 2];