This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/64709] [5 Regression] Bogus -Wmissing-field-initializers warning


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]