From: Benno Schulenberg Date: Fri, 28 Feb 2014 11:24:12 +0000 (+0000) Subject: Avoiding a warning when compiling with clang, patch by Eitan Adler. X-Git-Tag: v2.3.3~308 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=22a1440ce125dc860917ee25aa4ba9e684f94005;p=nano.git 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 --- diff --git a/ChangeLog b/ChangeLog index 74f8fde4..bb3c3bc9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2014-02-28 Eitan Adler + * src/nano.c (do_toggle) - Constify a char pointer, to fix + a warning when compiling with clang (and -Wall). + 2014-02-27 Mike Frysinger * doc/man/nanorc.5 - Relocate the misplaced unbind section, and improve formatting. (Patch tweaked by Benno.) diff --git a/src/nano.c b/src/nano.c index dfb62dcc..2d8b0815 100644 --- a/src/nano.c +++ b/src/nano.c @@ -1367,7 +1367,7 @@ void allow_pending_sigwinch(bool allow) void do_toggle(int flag) { bool enabled; - char *desc; + const char *desc; TOGGLE(flag);