clang - how to disable [-Werror,-Wpointer-bool-conversion]

Viewed 6327

I want to compile a project with clang, and got some errors like error: [-Werror,-Wpointer-bool-conversion]

  1. I didn't set -Wpointer-bool-conversion as error, does clang do it by default?
  2. How to turn off this error, treat it as normal warning, I don't want to break the compiling with this warning.
  3. If I add -Wno-pointer-bool-conversion, then the error is gone, also the warning, I want to keep the warning.

Any ideas? Thanks

1 Answers
Related