From 76d61ec1677bba1c1eec080ddc239e6a59f5cea3 Mon Sep 17 00:00:00 2001 From: Chris Allegretta Date: Thu, 3 Jan 2013 05:00:34 +0000 Subject: [PATCH] 2013-01-02 Mike Frysinger * src/search.c (search_init): Fix gcc complaints on certain versions git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4559 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- ChangeLog | 3 ++- src/search.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index db0a1d77..592ba697 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,6 @@ 2013-01-02 Mike Frysinger - * src/files.c: (cwd_tab_completion): Remove unnecessary variables + * src/files.c (cwd_tab_completion): Remove unnecessary variables + * src/search.c (search_init): Fix gcc complaints on certain versions 2013-01-02 Eitan Adler * configure.ac: Remove unnecessary checks diff --git a/src/search.c b/src/search.c index fc0ba407..79984f2d 100644 --- a/src/search.c +++ b/src/search.c @@ -138,7 +138,6 @@ int search_init(bool replacing, bool use_answer) int i = 0; char *buf; sc *s; - void (*func)(void); bool meta_key = FALSE, func_key = FALSE; static char *backupstring = NULL; /* The search string we'll be using. */ @@ -220,6 +219,8 @@ int search_init(bool replacing, bool use_answer) statusbar(_("Cancelled")); return -1; } else { + void (*func)(void); + for (s = sclist; s != NULL; s = s->next) if ((s->menu & currmenu) && i == s->seq) { func = s->scfunc; -- 2.39.5