I saw somewhere assert used with a message in the following way:
assert((\"message\", condition));
This seems to work great, except that gc
According to following link http://www.cplusplus.com/reference/clibrary/cassert/assert/
assert is expecting only expression. May be you are using some overloaded function.
According to this, only expression is allowed and thus you are getting this warning.