Avoiding a warning when compiling with clang, patch by Eitan Adler.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4622 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
master
Benno Schulenberg 2014-02-28 11:24:12 +00:00
parent 16fe178879
commit 22a1440ce1
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2014-02-28 Eitan Adler <lists@eitanadler.com>
* src/nano.c (do_toggle) - Constify a char pointer, to fix
a warning when compiling with clang (and -Wall).
2014-02-27 Mike Frysinger <vapier@gentoo.org>
* doc/man/nanorc.5 - Relocate the misplaced unbind section,
and improve formatting. (Patch tweaked by Benno.)

View File

@ -1367,7 +1367,7 @@ void allow_pending_sigwinch(bool allow)
void do_toggle(int flag)
{
bool enabled;
char *desc;
const char *desc;
TOGGLE(flag);