V6063. Odd semicolon ';' after 'if/for/while' operator.
The analyzer has detected a potential defect that has to do with a semicolon ';' after an 'if', 'for' or 'while' statement.
Consider the following example:
int someMethod(int value, int a, int b, int c, ...)
{
int res = -1;
....
if (value > (a - b)/c);
{
....
res = calculate(value);
}
....
return res;
}
Fixed code:
int someMethod(int value, int a, int b, int c, ...)
{
int res = -1;
....
if (value > (a - b)/c)
{
....
res = calculate(value);
}
....
return res;
}
This diagnostic is classified as:
|