RFC: PR 25137: moving -Wmissing-braces to -Wextra?
Paolo Carlini
paolo.carlini@oracle.com
Tue Nov 17 22:58:00 GMT 2009
Ian Lance Taylor wrote:
> OK, to me that seems like an excellent reason to implement a special
> case for the warning here. For example, perhaps if a struct has only
> one field, and that field is an aggregate, then we don't warn if there
> is only one set of braces.
>
Sure, we considered that, you can find traces of that reasoning in the
audit trail, then lately I noticed the ICC and SunStudio behaviors, and
that idea appeared to me a tad too sophisticated... but if people agree,
I can return to it. Do you think that version of the warning should be
simply the default, right, simply the new behavior of -Wmissing-braces?
Paolo.
More information about the Gcc
mailing list