diff --git a/lib/checkfunctions.cpp b/lib/checkfunctions.cpp index 364bf919a..c85354e58 100644 --- a/lib/checkfunctions.cpp +++ b/lib/checkfunctions.cpp @@ -157,7 +157,7 @@ void CheckFunctions::checkIgnoredReturnValue() const Scope * scope = symbolDatabase->functionScopes[i]; for (const Token* tok = scope->classStart->next(); tok != scope->classEnd; tok = tok->next()) { // skip c++11 initialization, ({...}) - if (Token::Match(tok, "%var%|( {")) + if (Token::Match(tok, "%var%|(|, {")) tok = tok->linkAt(1); if (tok->varId() || !Token::Match(tok, "%name% ("))