summaryrefslogtreecommitdiff
path: root/lib-src/ebrowse.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2011-02-25 21:41:42 -0800
committerPaul Eggert <eggert@cs.ucla.edu>2011-02-25 21:41:42 -0800
commit37472e9be7681a947e5e01515a5398d80b72a15d (patch)
tree995d46063142bda4c6815acf7b843d48395b2d13 /lib-src/ebrowse.c
parent27ef9c5a6c210dec198f0653fb4bb36269eb2ff9 (diff)
downloademacs-37472e9be7681a947e5e01515a5398d80b72a15d.tar.gz
* 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.
Diffstat (limited to 'lib-src/ebrowse.c')
-rw-r--r--lib-src/ebrowse.c5
1 files changed, 4 insertions, 1 deletions
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));
}