diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2023-01-18 10:27:06 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2023-01-18 10:27:06 +0000 |
commit | 2d518efbe7d05e7089920afb8aec8f416382b5b5 (patch) | |
tree | 8d07251b0692c72f82b27c5f0ee3bcb431f7fdb0 /regress | |
parent | bf1d2764148186e82a3594a58a29730d0a0360e1 (diff) |
Adjust how gcc4 handles the "missing braces around initializer" warning.
In c99 any value can be initalised using a { 0 } constructor independent
of the type. Now if a struct's first member is another struct then gcc4
issues the above warning but it should not do that.
Move the warning check from push_init_level() to pop_init_level() and
check if either { 0 } or { } was used. If additional implicit braces
were added surpress the warning.
Inspired by gcc PR#64709
OK deraadt@ miod@
Diffstat (limited to 'regress')
0 files changed, 0 insertions, 0 deletions