From 04a230f9336c128879c28f18ebe7ea7cb383506f Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Sun, 15 May 2016 15:18:47 +0200 Subject: [PATCH] tweaks: avoid a warning when configured with --disable-wrapping --- src/nano.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/nano.c b/src/nano.c index 152f809e..a4984f01 100644 --- 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