I'm using the clang-based compiler in C++ Builder XE8 (--version
reports it as Embarcadero Technologies Inc. clang version 3.1 (35091.dcc1b50.3081e8f) (based on LLVM 3.1svn)
).
My code contains comparisons of unsigned integral values with macros, in the vein of myUnsignedInt >= MY_MACRO
, which can generate always-true or always-false warnings when MY_MACRO
is 0
. I know clang has ways to silence certain other warnings by being in some way explicit about your intentions -- if (foo = bar)
warns, but if ((foo = bar))
doesn't -- so is there a way to be explicit about a comparison like this (in clang specifically)?