Versions Compared

Key

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

...

Code and values that have no effect can be detected by suitable static analysis.

Related Guidelines

ISO/IEC TR 24772:2013Unspecified Functionality [BVQ]
Likely Incorrect Expressions [KOA]
Dead and Deactivated Code [XYQ]
MISRA 2004Rule 2.4
MITRE CWECWE-561, Dead code

Bibliography

[Fortify 2006]Code Quality, "Dead Code"
[Coverity 2007]Coverity Prevent User's Manual (3.3.0)

...