...
Placing a semicolon immediately following an if
, for
, or while
condition may result in unexpected behavior.
Automated Detection
Tool | Version | Checker | Description |
---|
PVS-Studio |
| V6063 | |||||||
SonarQube |
|
|
| EmptyStatementUsageCheck |
...
Bibliography
§2.7.2, "Errors of Omission and Addition" |
...
...