...
Code and values that have no effect can be detected by suitable static analysis.
Related Guidelines
ISO/IEC TR 24772:2013 | Obscure Language Features [BRS] Unspecified Functionality [BVQ] Likely incorrect expressions [KOA] Dead and Deactivated Code [XYQ] |
[MISRA 04] | Rule 2.4 |
MITRE 07 | CWE ID 561, Dead code |
...