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?
Joe Buck wrote:
> I think that the cleanest way is to suppress the warning for structs
> with one member
And recursively?
So that:
struct A { int i; };
struct B { struct A a };
struct C { struct B b };
struct C c = { 1 };
does not trigger the warning?
What if struct B is now:
struct B { struct A a; int j; };
and I write:
struct C c = { 1, 2 };
?
--
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713