[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Nano-devel] [PATCH] Avoid unused variable warnings when NLS is disa
From: |
Benno Schulenberg |
Subject: |
Re: [Nano-devel] [PATCH] Avoid unused variable warnings when NLS is disabled. |
Date: |
Wed, 23 May 2018 12:04:54 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 |
Op 23-05-18 om 05:24 schreef Brand Huntsman:
> Commit 10c49edd3b7c904a05219c087fdf11586b41dc14 added two variables only used
> in code wrapped with ENABLE_NLS.
>
> prompt.c: In function 'do_yesno_prompt':
> prompt.c:682:16: warning: unused variable 'index' [-Wunused-variable]
> int kbinput, index = 0;
> ^~~~~
> prompt.c:681:8: warning: unused variable 'letter' [-Wunused-variable]
> char letter[MAXCHARLEN + 1];
Thanks for the report and the patch. Applied and pushed, commit b5427ebb.
Benno
signature.asc
Description: OpenPGP digital signature