Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Placing a semicolon immediately following an if, for, or while condition may result in unexpected behavior.

Automated Detection

ToolVersionCheckerDescription
PVS-Studio

Include Page
PVS-Studio_V
PVS-Studio_V

V6063
SonarQube
Include Page
SonarQube_V
SonarQube_V
EmptyStatementUsageCheck


Bibliography

[Hatton 1995]

§2.7.2, "Errors of Omission and Addition"

...


...

Image Modified Image Modified Image Modified