...
The Coverity Prevent UNUSED_VALUE checker finds variables that are assigned pointer values returned from a function call but never used.
Klocwork Version 8.0.4.16 can detect violations of this rule with the IF_ONLY_DECL, IF_ONLY_DEF, IF_ONLY_LOCAL, LV_UNUSED.GEN, PA_UNUSED.GEN, VA_UNUSED.GEN, VA_UNUSED.INIT, and VA_UNUSED.INITCONST checkers. See Klocwork Cross Reference
Related Vulnerabilities
Search for vulnerabilities resulting from the violation of this rule on the CERT website.
...