From: Chris Allegretta Date: Thu, 3 Jan 2013 05:00:34 +0000 (+0000) Subject: 2013-01-02 Mike Frysinger X-Git-Tag: v2.3.2~11 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=76d61ec1677bba1c1eec080ddc239e6a59f5cea3;p=nano.git 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 --- 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;