commit 04a230f9336c128879c28f18ebe7ea7cb383506f
parent 71e452aef2105ede42c82c6f9fbd7fcfa089a815
Author: Benno Schulenberg <bensberg@justemail.net>
Date: Sun, 15 May 2016 15:18:47 +0200
tweaks: avoid a warning when configured with --disable-wrapping
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/src/nano.c b/src/nano.c
@@ -1958,9 +1958,11 @@ int main(int argc, char **argv)
#ifndef DISABLE_WRAPJUSTIFY
bool fill_used = FALSE;
/* Was the fill option used on the command line? */
+#ifndef DISABLE_WRAPPING
bool forced_wrapping = FALSE;
/* Should long lines be automatically hard wrapped? */
#endif
+#endif
#ifndef DISABLE_MULTIBUFFER
bool old_multibuffer;
/* The old value of the multibuffer option, restored after we
@@ -2222,7 +2224,9 @@ int main(int argc, char **argv)
exit(1);
}
fill_used = TRUE;
+#ifndef DISABLE_WRAPPING
forced_wrapping = TRUE;
+#endif
break;
#endif
#ifndef DISABLE_SPELLER