This is the mail archive of the gcc@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]

Re: -Wparentheses lumps too much together


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]