RFC: PR 25137: moving -Wmissing-braces to -Wextra?
Mark Mitchell
mark@codesourcery.com
Wed Nov 18 01:34:00 GMT 2009
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
More information about the Gcc
mailing list