bug-groff
[Top][All Lists]
Advanced

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

warning: & has lower precedence than ==; == will be evaluated first


From: Ryan Schmidt
Subject: warning: & has lower precedence than ==; == will be evaluated first
Date: Wed, 4 Jan 2012 21:10:26 -0600

Trying to build groff 1.21 with clang 3.0 (or 2.9) on OS X 10.6.8 I get this 
warning, which seems like it's pointing out a real problem:


input.cpp:998:13: warning: & has lower precedence than ==; == will be evaluated 
first [-Wparentheses]
  return (n & 1 == 1) ? true : false;
            ^~~~~~~~
input.cpp:998:13: note: place parentheses around the == expression to silence 
this warning
  return (n & 1 == 1) ? true : false;
            ^
              (     )
input.cpp:998:13: note: place parentheses around the & expression to evaluate 
it first
  return (n & 1 == 1) ? true : false;
            ^
          (    )
1 warning generated.


I notice you've had a fix for this in your repository for half a year already. 
Will you release a new version of groff soon? We would like to benefit from all 
the improvements you've made in groff since the release of 1.21 one year ago.






reply via email to

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