diff options
| author | Paul Eggert <eggert@cs.ucla.edu> | 2011-03-29 17:39:12 -0700 |
|---|---|---|
| committer | Paul Eggert <eggert@cs.ucla.edu> | 2011-03-29 17:39:12 -0700 |
| commit | 77861b9528e3fbb5f406267ff298a95009530b7f (patch) | |
| tree | d7eb3886831322f956d997d7bd10d034dfca5839 /lib-src | |
| parent | d806ab682a8e914345db3f2eede292f85745c98c (diff) | |
| parent | de6dbc14a72347f3f2a3b4f0bf3c39d6f69a425e (diff) | |
| download | emacs-77861b9528e3fbb5f406267ff298a95009530b7f.tar.gz | |
Fix more problems found by GCC 4.6.0's static checks.
Diffstat (limited to 'lib-src')
| -rw-r--r-- | lib-src/ChangeLog | 5 | ||||
| -rw-r--r-- | lib-src/etags.c | 6 |
2 files changed, 7 insertions, 4 deletions
diff --git a/lib-src/ChangeLog b/lib-src/ChangeLog index f594efa588c..5007995e14e 100644 --- a/lib-src/ChangeLog +++ b/lib-src/ChangeLog @@ -1,3 +1,8 @@ +2011-03-30 Paul Eggert <eggert@cs.ucla.edu> + + Fix a problem found by GCC 4.6.0's static checks. + * etags.c (just_read_file): Remove dummy variable and simplify. + 2011-03-27 Glenn Morris <rgm@gnu.org> * emacsclient.c: Replace SIGTYPE with void. diff --git a/lib-src/etags.c b/lib-src/etags.c index 6cb321fe75e..a2cdf26abc7 100644 --- a/lib-src/etags.c +++ b/lib-src/etags.c @@ -3978,10 +3978,8 @@ Yacc_entries (FILE *inf) static void just_read_file (FILE *inf) { - register char *dummy; - - LOOP_ON_INPUT_LINES (inf, lb, dummy) - continue; + while (!feof (inf)) + readline (&lb, inf); } |
