help-bison
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: parenthesis warnings


From: Hans Aberg
Subject: Re: parenthesis warnings
Date: Fri, 10 Dec 2010 11:24:21 +0100

On 8 Dec 2010, at 15:26, Gergely Feldhoffer wrote:

... The recent version of GCC produce warnings like

position.hh: In function ‘bool example::operator==(const
example::position&, const example::position&)’:
position.hh:136:69: warning: suggest parentheses around ‘&&’ within ‘||’
[-Wparentheses]

which is a bit annoying, since the code runs well. I haven't found
switches in the manual to turn on extra parentheses around &&-s.

Take that GCC flag away. On Bison 2.4.3 with no flags, I have no such warnings.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]