Our website uses cookies to enhance your browsing experience.
Accept
to the top
>
>
>
V7026. Stray semicolon after the...
menu mobile close menu
Additional information
toggle menu Contents

V7026. Stray semicolon after the condition of an if, for or while statement.

Jun 16 2026

The analyzer has detected a potential error related to the ';' character after the if, for, or while control constructs.

The example:

if (value > (a - b) / c); {
  ....
  res = calculate(value);
}

Because of the ';' character, the code block following if does not belong to this if. This results in the code block that executes unconditionally.

To fix this issue, remove the unnecessary ';' character:

if (value > (a - b) / c) {
  ....
  res = calculate(value);
}