Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Moved a reference to Related Guidelines

...

Not enclosing the bodies of if, for, or while statements in braces makes code maintenance error prone.

Related Guidelines

[Rogue 2000]Rule 76: Use block statements instead of expression statements in control flow constructs

Bibliography

[GNU 2010]

Coding Standards, Section 5.3, "Clean Use of C Constructs"

[Rogue 2000]

Rule 76: Use block statements instead of expression statements in control flow constructs