commit 9dc72cf3baf6749eb529b0504ce2a8d248c47100
parent d5ac1ed39513d6632aa4fe47ca1a5a90eb48c312
Author: Benno Schulenberg <bensberg@telfort.nl>
Date: Wed, 1 Nov 2017 20:08:55 +0100
tweaks: avoid an unused-variable warning with --disable-nanorc
Diffstat:
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/nano.c b/src/nano.c
@@ -1893,14 +1893,14 @@ void do_output(char *output, size_t output_len, bool allow_cntrls)
int main(int argc, char **argv)
{
int optchr;
-#ifdef ENABLED_WRAPORJUSTIFY
+#if defined(ENABLED_WRAPORJUSTIFY) && defined(ENABLE_NANORC)
bool fill_used = FALSE;
/* Was the fill option used on the command line? */
+#endif
#ifdef ENABLE_WRAPPING
bool forced_wrapping = FALSE;
/* Should long lines be automatically hard wrapped? */
#endif
-#endif
#ifdef ENABLE_MULTIBUFFER
bool is_multibuffer;
/* The actual value of the multibuffer option, restored after
@@ -2177,7 +2177,9 @@ int main(int argc, char **argv)
fprintf(stderr, "\n");
exit(1);
}
+#ifdef ENABLE_NANORC
fill_used = TRUE;
+#endif
#ifdef ENABLE_WRAPPING
forced_wrapping = TRUE;
#endif