Silencing a compiler warning about a possibly uninitialized variable.
Patch by Mike Frysinger (from November 2011). git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4704 35c25a1d-7b9e-4130-9fde-d3aeb78583b8master
parent
d28ed53db1
commit
4171477fb5
|
@ -3,6 +3,8 @@
|
||||||
* .gitignore: Add 'config.cache', created by './configure -C'.
|
* .gitignore: Add 'config.cache', created by './configure -C'.
|
||||||
* src/nano.c (die_save_file): Newer gcc warns about set-but-unused
|
* src/nano.c (die_save_file): Newer gcc warns about set-but-unused
|
||||||
variables, so add a dummy if() check to kill that off.
|
variables, so add a dummy if() check to kill that off.
|
||||||
|
* src/search.c (search_init): Silence a compiler warning about a
|
||||||
|
variable possibly being used uninitialized.
|
||||||
|
|
||||||
2014-03-31 Chris Allegretta <chrisa@asty.org>
|
2014-03-31 Chris Allegretta <chrisa@asty.org>
|
||||||
* doc/syntax/go.nanorc: basic go syntax highlighting
|
* doc/syntax/go.nanorc: basic go syntax highlighting
|
||||||
|
|
|
@ -219,7 +219,7 @@ int search_init(bool replacing, bool use_answer)
|
||||||
statusbar(_("Cancelled"));
|
statusbar(_("Cancelled"));
|
||||||
return -1;
|
return -1;
|
||||||
} else {
|
} else {
|
||||||
void (*func)(void);
|
void (*func)(void) = NULL;
|
||||||
|
|
||||||
for (s = sclist; s != NULL; s = s->next)
|
for (s = sclist; s != NULL; s = s->next)
|
||||||
if ((s->menu & currmenu) && i == s->seq) {
|
if ((s->menu & currmenu) && i == s->seq) {
|
||||||
|
|
Loading…
Reference in New Issue