-Wparentheses lumps too much together
Ian Lance Taylor
iant@google.com
Fri Jan 11 23:26:00 GMT 2008
Joe Buck <Joe.Buck@synopsys.COM> writes:
> A warning that flagged code like
>
> if (c1 || c2 && c3)
> ...
>
> would swamp users in warnings, since this kind of code is extremely
> common, and this isn't the kind of thing that anyone who's not a total C
> beginner has trouble with.
That is what -Wparentheses does today.
I think it's a good thing, because I've seen it catch coding errors in
real code.
Ian
More information about the Gcc
mailing list