Coding with Eclipse, I like my code to be as clean as possible. I basically activated every warning possible on my gcc and the -Werr flag ensures me I cannot overlook them.
Although I did that, I do not have any compilation problem (since my code is valid), but still I got this annoying warning from Eclipse:
Suggested parenthesis around expression 'flags & CONSTANT'
The expression being considered is
if(flags & CONSTANT || bufferUsed == 0) ...
Following Operators precedence, both Bitwise AND and Equality have higher precedence than Logical OR.
Is Eclipse just dumb, issuing warnings based on some to-be-proven-cases-where-code-looking-like-mine-went-wrong or is that warning issued on a solid basis?