I get the warning controlling expression is constant on assert statement like this:
assert(... && \"error message\");
Add the following somewhere near the beginning of your code:
#pragma diag_suppress boolean_controlling_expr_is_constant
Note that this will suppress all compiler warnings for "controlling expression is constant", not just the warning associated with your assertions.
I sometimes get this warning when checking constants or properties that are defined (or can be derived) at compile time, so in my experience the warning has been generally benign and OK to ignore.