...
Code and values that have no effect can be detected by suitable static analysis.
Related Guidelines
ISO/IEC TR 24772:2013 | Unspecified Functionality [BVQ] Likely Incorrect Expressions [KOA] Dead and Deactivated Code [XYQ] |
MISRA 2004 | Rule 2.4 |
MITRE CWE | CWE-561, Dead code |
Bibliography
[Fortify 2006] | Code Quality, "Dead Code" |
[Coverity 2007] | Coverity Prevent User's Manual (3.3.0) |
...