[Bug c/63480] -Wmissing-field-initializers should not warn about intentionally empty initializers (or that should be a separate option)
mpolacek at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Oct 9 08:26:00 GMT 2014
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63480
--- Comment #7 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Author: mpolacek
Date: Thu Oct 9 08:25:50 2014
New Revision: 216031
URL: https://gcc.gnu.org/viewcvs?rev=216031&root=gcc&view=rev
Log:
PR c/63480
* c-typeck.c (pop_init_level): Don't warn about initializing
with { }.
* gcc.dg/pr63480.c: New test.
Added:
trunk/gcc/testsuite/gcc.dg/pr63480.c
Modified:
trunk/gcc/c/ChangeLog
trunk/gcc/c/c-typeck.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list