2013-01-02 Mike Frysinger <vapier@gentoo.org>

* 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
This commit is contained in:
Chris Allegretta 2013-01-03 05:00:34 +00:00
parent 2a76b434fc
commit 76d61ec167
2 changed files with 4 additions and 2 deletions

View File

@ -1,5 +1,6 @@
2013-01-02 Mike Frysinger <vapier@gentoo.org>
* 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 <lists@eitanadler.com>
* configure.ac: Remove unnecessary checks

View File

@ -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;