re PR c/64709 (Bogus -Wmissing-field-initializers warning)
authorMarek Polacek <polacek@redhat.com>
Thu, 29 Jan 2015 21:02:21 +0000 (21:02 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Thu, 29 Jan 2015 21:02:21 +0000 (21:02 +0000)
commit7b33f0c8e6688594167f68e3a87031fea9d058bd
tree11ab17e0248f5e7538c9d5b630dba979f09c58b6
parenta7c3e87ed900cb2b6ff0f72292e8a18cb87187b6
re PR c/64709 (Bogus -Wmissing-field-initializers warning)

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.

From-SVN: r220263
gcc/c/ChangeLog
gcc/c/c-typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr64709.c [new file with mode: 0644]