Compiler Warning (level 1) C4804

'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, if you use operators such as the negative unary operator (-) or the complement operator (~).