|
![]() Click on image to see enlargment |
|
PC-lint/FlexeLint Output | Reference Manual Explanation | Home bug834.cpp
The weatherman is developing a new theory concerning the ratio of west to north wind components. But he is being confounded by the fact that although the ratio of north to west winds is 0.5, the ratio of west to north winds is complete garbage. What's the problem? bug834.cpp lint Output
--- Module: bug834.cpp
_
#define r northerly / westerly // ratio of north to west winds
bug834.cpp(10) : Info 773: Expression-like macro 'r' not parenthesized
_
printf( "The ratio of west to north winds is %g\n", R(r) );
bug834.cpp(13) : Warning 665: Unparenthesized parameter 1 in macro 'R' is
passed an expression
bug834.cpp(13) : Info 834: Operator '/' followed by operator '/' is confusing.
Use parentheses.
|
Previous Bug - Bug #1770 - February 2005