This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: RFC: PR 25137: moving -Wmissing-braces to -Wextra?
Jonathan Wakely wrote:
> This still has exactly two initialisers for exactly two objects, so I
> think it's OK. I'm concerned about missing braces when the meaning of
> the code may not be what you expect.
I think you're right -- you want -Wmissing-field-initializers, not
-Wmissing-braces. -Wmissing-braces is explicitly about not having all
the brace groups fully specified.
--
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713