The analyzer has detected that the true and false branches of the if statement are completely identical. This often indicates a logical error.
The example:
if (condition)
result = FirstFunc(val);
else
result = FirstFunc(val);
Regardless of the variable's value, the same actions will be performed.
The fixed code:
if (condition)
result = FirstFunc(val);
else
result = SecondFunc(val);
This diagnostic is classified as:
You can look at examples of errors detected by the V3004 diagnostic. |
Was this page helpful?
Your message has been sent. We will email you at
If you do not see the email in your inbox, please check if it is filtered to one of the following folders:
Take
a chance!