I have the following warning:
"controlling expression is constant"
because of assert statement like this:
assert(... && "error message");
how can I suppress warning from this particular line? The compiler I use is NVIDIA cuda compiler. I think it is llvm based.
okay, it may not be llvm, as the pragma's do not have any affect. The Boolean replacement is not something I want. The idea is to print longer helpful error message when assert fails. The code works but the warning messages junk the output.
#pragma warning disable
does not have an effect either. Probably should mention that I am on Linux if it matters
okay it is GCC, however the usual GCC ignored pragma has no affect. I understood the Boolean part but I would like to print some special characters, such as *. However the Boolean thing might be okay
definitely GCC, at least as far as the macros are concerned. Thanks