diff --git a/lib/checkfunctions.cpp b/lib/checkfunctions.cpp index 4a710ddee..1ee90bd83 100644 --- a/lib/checkfunctions.cpp +++ b/lib/checkfunctions.cpp @@ -188,7 +188,7 @@ void CheckFunctions::checkMathFunctions() for (const Token* tok = scope->classStart->next(); tok != scope->classEnd; tok = tok->next()) { if (tok->varId()) continue; - if (printWarnings) { + if (printWarnings && Token::Match(tok, "%name% ( !!)")) { if (tok->strAt(-1) != "." && Token::Match(tok, "log|logf|logl|log10|log10f|log10l ( %num% )")) { const std::string& number = tok->strAt(2);