>From c11b3f343c8589971f8098c9b6e2a680d510384e Mon Sep 17 00:00:00 2001 From: Brand Huntsman Date: Tue, 22 May 2018 21:17:27 -0600 Subject: [PATCH] Avoid unused variable warnings when NLS is disabled. Signed-off-by: Brand Huntsman --- src/prompt.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/prompt.c b/src/prompt.c index 93ab9274..7f6e5a00 100644 --- a/src/prompt.c +++ b/src/prompt.c @@ -678,8 +678,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]; -- 2.16.1