CodeQL library for C/C++
codeql/cpp-all 3.0.1-dev (changelog, source)
Search

Member predicate Options::okToIgnoreReturnValue

Holds if it is reasonable to ignore the return value of function call fc.

By default holds for calls to select where the first argument is 0 (commonly used as a way of sleeping), and any call inside a macro expansion.

predicate okToIgnoreReturnValue(FunctionCall fc)