The analyzer allows to detect suspicious operations such as '+', '-', '<<', '>>' where one of the operands is equal to 0, or the operation '*', '/', '%' with the operand, equal to 1.
The V6048 diagnostic rule helps to perform code refactoring and sometimes detect errors.
These are examples of constructs that cause this diagnostic message to appear:
int y = 1; ... int z = x * y;
This code can be simplified. For example:
int z = x;
This diagnostic is classified as:
You can look at examples of errors detected by the V6048 diagnostic.