diff options
author | rsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-06-23 09:08:21 +0000 |
---|---|---|
committer | rsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-06-23 09:08:21 +0000 |
commit | 8ee95d4a4469aa6622fad9f4f869ceaac3043b8c (patch) | |
tree | b5ff138503c4031cdd33fb0a5c1fd4c6bc81cb38 /gcc/gengtype-yacc.y | |
parent | f5bb03b3800e4d8d78280382d2056466dc70434f (diff) | |
download | gcc-8ee95d4a4469aa6622fad9f4f869ceaac3043b8c.tar.gz |
* gengtype-yacc.y (option): Avoid use of non-constant struct
initializer.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83546 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/gengtype-yacc.y')
-rw-r--r-- | gcc/gengtype-yacc.y | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gcc/gengtype-yacc.y b/gcc/gengtype-yacc.y index 2e7b6a70575..449a515e083 100644 --- a/gcc/gengtype-yacc.y +++ b/gcc/gengtype-yacc.y @@ -282,8 +282,11 @@ option: ID { $$ = create_option ($1, adjust_field_type ($3, NULL)); } | NESTED_PTR '(' type ',' stringseq ',' stringseq ')' { - struct nested_ptr_data d = - { adjust_field_type ($3, NULL), $5, $7 }; + struct nested_ptr_data d; + + d.type = adjust_field_type ($3, NULL); + d.convert_to = $5; + d.convert_from = $7; $$ = create_option ("nested_ptr", xmemdup (&d, sizeof (d), sizeof (d))); } |