Versions Compared

Key

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

...

Automated Detection

The LDRA tool suite V Version 7.6.0 can detect violations of this recommendation.

The Coverity Prevent UNUSED_VALUE checker finds variables that are assigned pointer values returned from a function call but never used.

The Klocwork Klocwork Version 8.0.4.16 can detect violations of this rule with the IF_ONLY_DECL, IF_ONLY_DEF, IF_ONLY_LOCAL, and LV_UNUSED.GEN checkers can detect violations of this rule.

Related Vulnerabilities

Search for vulnerabilities resulting from the violation of this rule on the CERT website.

...