nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit b5427ebb98482faca297f96dc8dd731e05ba76f7
parent 22663f8a2e2dc2cf556f5efe22208888cca649f3
Author: Brand Huntsman <alpha@qzx.com>
Date:   Tue, 22 May 2018 21:17:27 -0600

tweaks: avoid two unused variable warnings when NLS is disabled

Signed-off-by: Brand Huntsman <alpha@qzx.com>

Diffstat:
Msrc/prompt.c | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/prompt.c b/src/prompt.c @@ -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];