Parameter identifier lists are no prototypes.
authorChristoph Mallon <christoph.mallon@gmx.de>
Wed, 3 Dec 2008 10:34:00 +0000 (10:34 +0000)
committerChristoph Mallon <christoph.mallon@gmx.de>
Wed, 3 Dec 2008 10:34:00 +0000 (10:34 +0000)
[r24250]

parser.c

index d218ec3..dde9319 100644 (file)
--- a/parser.c
+++ b/parser.c
@@ -4132,7 +4132,8 @@ static void parse_parameters(function_type_t *type, scope_t *scope)
            !is_typedef_symbol(token.v.symbol)) {
                token_type_t la1_type = (token_type_t)look_ahead(1)->type;
                if (la1_type == ',' || la1_type == ')') {
-                       type->kr_style_parameters = true;
+                       type->kr_style_parameters    = true;
+                       type->unspecified_parameters = true;
                        parse_identifier_list(scope);
                        goto parameters_finished;
                }