Commit 22a1440c authored by Benno Schulenberg's avatar Benno Schulenberg
Browse files

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
parent 16fe1788
Showing with 5 additions and 1 deletion
+5 -1
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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment