This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/53119] -Wmissing-braces wrongly warns about universal zero initializer {0}
- From: "jnahughes at googlemail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 14 Aug 2013 11:36:08 +0000
- Subject: [Bug c/53119] -Wmissing-braces wrongly warns about universal zero initializer {0}
- Auto-submitted: auto-generated
- References: <bug-53119-4 at http dot gcc dot gnu dot org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53119
JamesH <jnahughes at googlemail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jnahughes at googlemail dot com
--- Comment #10 from JamesH <jnahughes at googlemail dot com> ---
I'd like to add that this is a definite problem when moving a codebase from a
different compiler to gcc. I'm having to individually fix up ={0} cases to
match the content of the structure being initialised, which is a PITA, and I
think against the C standard which I believe allows ={0} as a default zero
initialiser for structs of whatever content.
Therefore, is there any progress on this bug?