Lucky hour! Grab a free trial license — offer ends in 00:59:58. Claim now
The analyzer has detected a suspicious code fragment where both branches of an if statement are same. This often indicates an error.
The example:
if (cond)
result = firstFunc(val);
else
result = firstFunc(val);
Regardless of the value of the cond expression, the same operations are performed. Most likely, such code contains an error.
The fixed code:
if (cond)
result = firstFunc(val);
else
result = secondFunc(val);
This diagnostic is classified as:
You can look at examples of errors detected by the V7004 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: