Oleg Nesterov wrote:
> 
> --- git-snapshot-20050816/parse.c~3_emsg        2005-08-17 19:44:09.000000000 
> +0400
> +++ git-snapshot-20050816/parse.c       2005-08-17 21:03:35.000000000 +0400
> @@ -289,8 +289,10 @@ static struct token *parse_enum_declarat
>                         break;
>                 token = token->next;
>         }
> -       if (!base_type)
> +       if (!base_type) {
> +               warning(token->pos, "bad enum definition");
>                 base_type = &bad_ctype;

Actually, I think we can forget about &bad_ctype here and below. 
If there were problems during compilation they were already reported.
I think it is better to set base_type = int_ctype in order to supress
further errors flood from bad_expr_type().

Oleg.
-
To unsubscribe from this list: send the line "unsubscribe linux-sparse" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to