tweaks: avoid an unused-variable warning with --disable-nanorc
Этот коммит содержится в:
родитель
d5ac1ed395
Коммит
9dc72cf3ba
@ -1893,14 +1893,14 @@ void do_output(char *output, size_t output_len, bool allow_cntrls)
|
|||||||
int main(int argc, char **argv)
|
int main(int argc, char **argv)
|
||||||
{
|
{
|
||||||
int optchr;
|
int optchr;
|
||||||
#ifdef ENABLED_WRAPORJUSTIFY
|
#if defined(ENABLED_WRAPORJUSTIFY) && defined(ENABLE_NANORC)
|
||||||
bool fill_used = FALSE;
|
bool fill_used = FALSE;
|
||||||
/* Was the fill option used on the command line? */
|
/* Was the fill option used on the command line? */
|
||||||
|
#endif
|
||||||
#ifdef ENABLE_WRAPPING
|
#ifdef ENABLE_WRAPPING
|
||||||
bool forced_wrapping = FALSE;
|
bool forced_wrapping = FALSE;
|
||||||
/* Should long lines be automatically hard wrapped? */
|
/* Should long lines be automatically hard wrapped? */
|
||||||
#endif
|
#endif
|
||||||
#endif
|
|
||||||
#ifdef ENABLE_MULTIBUFFER
|
#ifdef ENABLE_MULTIBUFFER
|
||||||
bool is_multibuffer;
|
bool is_multibuffer;
|
||||||
/* The actual value of the multibuffer option, restored after
|
/* The actual value of the multibuffer option, restored after
|
||||||
@ -2177,7 +2177,9 @@ int main(int argc, char **argv)
|
|||||||
fprintf(stderr, "\n");
|
fprintf(stderr, "\n");
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
#ifdef ENABLE_NANORC
|
||||||
fill_used = TRUE;
|
fill_used = TRUE;
|
||||||
|
#endif
|
||||||
#ifdef ENABLE_WRAPPING
|
#ifdef ENABLE_WRAPPING
|
||||||
forced_wrapping = TRUE;
|
forced_wrapping = TRUE;
|
||||||
#endif
|
#endif
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user