<div class="gmail_quote">On Mon, Apr 9, 2012 at 3:54 PM, Jordan Rose <span dir="ltr"><<a href="mailto:jediknil@belkadan.com">jediknil@belkadan.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

I like this idea, though like David said it might not be great for all projects. I think it should be off for POD structs, though, like your first example:<br>
<div class="im"><br>
> // warning about a<br>
> struct A { int a; };<br>
<br>
</div>I think fewer people mistakenly expect POD structs to be initialized, and of course initializing 'a' would make the struct no-longer POD. The issues I've come across while working with Clang are always POD members in non-POD structures. What do you think?</blockquote>

</div><br><div>That makes a lot of sense, especially for compiling C-like code. I like that much better. I've updated my patch with test cases and a check for POD types. I'm still not sure where to put this diagnostic. It's tentatively in a new warning called -Wuninitialized-member in the -Wextra group. Is that the best place for it, or would it fit better somewhere else?</div>

<div><br></div><div>- Evan</div>