diff options
author | mrs <mrs@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-05-19 10:06:17 +0000 |
---|---|---|
committer | mrs <mrs@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-05-19 10:06:17 +0000 |
commit | 7d67118da951f7bb32fcb25e1bd41e295decadbd (patch) | |
tree | e62a3d2fc60147525f84a1dc878d3ba616570d45 /gcc/c-parser.c | |
parent | 0e8499c77ef37defeea0823e73c64cfbe56fb0ff (diff) | |
download | gcc-7d67118da951f7bb32fcb25e1bd41e295decadbd.tar.gz |
PR c/27673
* c-parser.c (c_parser_parms_declarator): Initialize had_vla_unspec.
(c_parser_parms_list_declarator): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@113904 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-parser.c')
-rw-r--r-- | gcc/c-parser.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/c-parser.c b/gcc/c-parser.c index eeb0ce90a83..8afe79c3703 100644 --- a/gcc/c-parser.c +++ b/gcc/c-parser.c @@ -2522,6 +2522,7 @@ c_parser_parms_declarator (c_parser *parser, bool id_list_ok, tree attrs) ret->tags = 0; ret->types = list; ret->others = 0; + ret->had_vla_unspec = 0; c_parser_consume_token (parser); pop_scope (); return ret; @@ -2563,6 +2564,7 @@ c_parser_parms_list_declarator (c_parser *parser, tree attrs) ret->tags = 0; ret->types = 0; ret->others = 0; + ret->had_vla_unspec = 0; c_parser_consume_token (parser); return ret; } @@ -2572,6 +2574,7 @@ c_parser_parms_list_declarator (c_parser *parser, tree attrs) ret->parms = 0; ret->tags = 0; ret->others = 0; + ret->had_vla_unspec = 0; /* Suppress -Wold-style-definition for this case. */ ret->types = error_mark_node; error ("ISO C requires a named argument before %<...%>"); @@ -2622,6 +2625,7 @@ c_parser_parms_list_declarator (c_parser *parser, tree attrs) ret->tags = 0; ret->types = 0; ret->others = 0; + ret->had_vla_unspec = 0; return ret; } } @@ -2647,6 +2651,7 @@ c_parser_parms_list_declarator (c_parser *parser, tree attrs) ret->tags = 0; ret->types = 0; ret->others = 0; + ret->had_vla_unspec = 0; return ret; } } |