[Bug c/64709] [5 Regression] Bogus -Wmissing-field-initializers warning
mpolacek at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Jan 29 21:03:00 GMT 2015
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64709
--- Comment #6 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Author: mpolacek
Date: Thu Jan 29 21:02:21 2015
New Revision: 220263
URL: https://gcc.gnu.org/viewcvs?rev=220263&root=gcc&view=rev
Log:
PR c/64709
* c-typeck.c (pop_init_level): If constructor_elements has
exactly one element with integer_zerop value, set constructor_zeroinit
to 1. Remove braces around warning_init call.
* gcc.dg/pr64709.c: New test.
Added:
trunk/gcc/testsuite/gcc.dg/pr64709.c
Modified:
trunk/gcc/c/ChangeLog
trunk/gcc/c/c-typeck.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list