From 37472e9be7681a947e5e01515a5398d80b72a15d Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Fri, 25 Feb 2011 21:41:42 -0800 Subject: * 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. --- lib-src/ebrowse.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lib-src/ebrowse.c') 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)); } -- cgit v1.2.1