From 22a1440ce125dc860917ee25aa4ba9e684f94005 Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Fri, 28 Feb 2014 11:24:12 +0000 Subject: [PATCH] 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 --- ChangeLog | 4 ++++ src/nano.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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); -- 2.39.5