Im building som software using boost 1.48 on osx 10.8 with gcc version 4.2.1 and i have started getting -Wparentheses-equality
warnings for some of the boost source.
equality comparison with extraneous parentheses
[-Werror,-Wparentheses-equality]
else if((state->type == syntax_element_long_set_rep))
I would change the code but i dont want to tinker with the library, how would i silence the warning and make the compiler continue?
From the GCC manual:
Most of these have both positive and negative forms; the negative form of
-ffoo
would be-fno-foo
.
Try -Wno-parentheses-equality
.