This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
On 04/13/2016 04:14 PM, Marek Polacek wrote:
This patch is meant to be applied on top of the "Wparentheses overhaul" patch. I really think that warning about the dangling else problem isn't appropriate as a part of the -Wparentheses warning, which I think should only deal with stuff like precedence of operators, i.e. things where ()'s are missing and not {}'s. This new warning is, however, a subset of -Wparentheses. Bootstrapped/regtested on x86_64-linux, ok for trunk or should I stash it for the next stage1?
I think it's not appropriate for now. I'm ambivalent about the concept; my (vague) recollection is that putting it under -Wparentheses was Kenner's idea, and it's been there so long that I'm not sure there's really a point to changing this. In a sense it is a very similar problem as operator precedence.
Bernd
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |