This is the mail archive of the
mailing list for the GCC project.
Re: -Wparentheses lumps too much together
- From: Joe Buck <Joe dot Buck at synopsys dot COM>
- To: Ian Lance Taylor <iant at google dot com>
- Cc: Rehno Lindeque <errantkid at gmail dot com>, Ross Smith <r-smith at ihug dot co dot nz>, gcc at gcc dot gnu dot org
- Date: Fri, 11 Jan 2008 16:47:41 -0800
- Subject: Re: -Wparentheses lumps too much together
- References: <20071219200235.GA21525@oak.schemamania.org> <email@example.com> <firstname.lastname@example.org> <email@example.com> <476C1461.firstname.lastname@example.org> <email@example.com> <20080111165936.GB31668@synopsys.com> <firstname.lastname@example.org>
On Fri, Jan 11, 2008 at 03:24:46PM -0800, Ian Lance Taylor wrote:
> 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.
It appears that I was mistaken. Sorry for the noise.