Silence - Rotation - Equality Error

Im build som software using boost 1.48 on osx 10.8 with gcc version gcc 4.2.1, and I started getting warnings -Wparentheses-equalityfor some promotion 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 do not want to bother with the library, how would I turn off the warning and force the compiler to continue?

+5
source share
2 answers

From the GCC manual :

Most of them have both positive and negative forms; negative form -ffoowill be -fno-foo.

Give it a try -Wno-parentheses-equality.

+10
source

"" . , , "" .

clang --system-header-prefix=<prefix>

, , "--system-header-prefix=boost/"

http://clang.llvm.org/docs/UsersManual.html#controlling-diagnostics-in-system-headers

, , clang, gcc.

+3

All Articles