...
This recommendation is a specific case of MSC12-C. Detect and remove code that has no effect or is never executed.
Noncompliant Code Example
...
Tool | Version | Checker | Description | ||||||
---|---|---|---|---|---|---|---|---|---|
CodeSonar |
| LANG.STRUCT.UVAL | Unused Value | ||||||
| UNUSED_VALUE | Finds variables that are assigned pointer values returned from a function call but never used | |||||||
|
| Can detect violations of this rule with a number of checkers | |||||||
| 1 D | Fully implemented | |||||||
PRQA QA-C |
| 3195 | Fully implemented |
Related Vulnerabilities
...
Related Guidelines
CERT C++ Secure Coding Standard | MSC13-CPP. Detect and remove unused values |
ISO/IEC TR 24772 | Likely Incorrect Expressions [KOA] Dead and Deactivated Code [XYQ] Unused Variable [XYR] |
...