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-d3aeb78583b8master
parent
16fe178879
commit
22a1440ce1
|
@ -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.)
|
||||
|
|
|
@ -1367,7 +1367,7 @@ void allow_pending_sigwinch(bool allow)
|
|||
void do_toggle(int flag)
|
||||
{
|
||||
bool enabled;
|
||||
char *desc;
|
||||
const char *desc;
|
||||
|
||||
TOGGLE(flag);
|
||||
|
||||
|
|
Loading…
Reference in New Issue