From: Paul Eggert Date: Sat, 26 Feb 2011 05:41:42 +0000 (-0800) Subject: * ebrowse.c (parse_qualified_param_ident_or_type): Make it clear X-Git-Tag: emacs-pretest-24.0.90~104^2~275^2~726^2~1 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=6c0668d97b32ea806006ede9652d78d8aa2b62ce;p=emacs.git * ebrowse.c (parse_qualified_param_ident_or_type): Make it clear to reader (and to the compiler) that the loop always executes at least once. This prevents a warning with recent GCC. --- diff --git a/lib-src/ChangeLog b/lib-src/ChangeLog index c57ee2ff98c..578b3e402b0 100644 --- a/lib-src/ChangeLog +++ b/lib-src/ChangeLog @@ -1,5 +1,9 @@ 2011-02-26 Paul Eggert + * ebrowse.c (parse_qualified_param_ident_or_type): Make it clear + to reader (and to the compiler) that the loop always executes at + least once. This prevents a warning with recent GCC. + * fakemail.c: Include . (put_line): Explicitly ignore fwrite return value, for benefit of recent glibc + gcc. diff --git a/lib-src/ebrowse.c b/lib-src/ebrowse.c index 60baf99c511..c2b1fb9f457 100644 --- a/lib-src/ebrowse.c +++ b/lib-src/ebrowse.c @@ -2952,7 +2952,9 @@ parse_qualified_param_ident_or_type (char **last_id) static char *id = NULL; static int id_size = 0; - while (LOOKING_AT (IDENT)) + assert (LOOKING_AT (IDENT)); + + do { int len = strlen (yytext) + 1; if (len > id_size) @@ -2975,6 +2977,7 @@ parse_qualified_param_ident_or_type (char **last_id) else break; } + while (LOOKING_AT (IDENT)); }