'operation' : unsafe use of type 'bool' in operation
This warning is for unary operations and is generated when you used a bool variable or value in an unexpected way, For example, it is generated if you use operators such as the negative unary operator (-) or the complement operator (~). The compiler evaluates the expression.
The following sample generates C4804:
void main() { bool i = true; if (-i) { // C4804, remove the '-' to resolve i = false; } }