diff options
| author | Paul Eggert | 2011-02-25 21:41:42 -0800 |
|---|---|---|
| committer | Paul Eggert | 2011-02-25 21:41:42 -0800 |
| commit | 6c0668d97b32ea806006ede9652d78d8aa2b62ce (patch) | |
| tree | ec04cbf2d5dfa1029856bd4fdd915a93cd6922d8 /lib-src/ebrowse.c | |
| parent | a4fe4e890af466aea88b4e069d176b8e7da94c80 (diff) | |
| download | emacs-6c0668d97b32ea806006ede9652d78d8aa2b62ce.tar.gz emacs-6c0668d97b32ea806006ede9652d78d8aa2b62ce.zip | |
* 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.c | 5 |
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) | |||
| 2952 | static char *id = NULL; | 2952 | static char *id = NULL; |
| 2953 | static int id_size = 0; | 2953 | static int id_size = 0; |
| 2954 | 2954 | ||
| 2955 | while (LOOKING_AT (IDENT)) | 2955 | assert (LOOKING_AT (IDENT)); |
| 2956 | |||
| 2957 | do | ||
| 2956 | { | 2958 | { |
| 2957 | int len = strlen (yytext) + 1; | 2959 | int len = strlen (yytext) + 1; |
| 2958 | if (len > id_size) | 2960 | if (len > id_size) |
| @@ -2975,6 +2977,7 @@ parse_qualified_param_ident_or_type (char **last_id) | |||
| 2975 | else | 2977 | else |
| 2976 | break; | 2978 | break; |
| 2977 | } | 2979 | } |
| 2980 | while (LOOKING_AT (IDENT)); | ||
| 2978 | } | 2981 | } |
| 2979 | 2982 | ||
| 2980 | 2983 | ||