Fixed #8022 (DacaWrongData: checkIgnoredReturnValue, hana)

This commit is contained in:
Daniel Marjamäki 2017-06-10 08:23:26 +02:00
parent 453058c059
commit f86d8244fa
1 changed files with 1 additions and 1 deletions

View File

@ -182,7 +182,7 @@ void CheckFunctions::checkIgnoredReturnValue()
// skip c++11 initialization, ({...}) // skip c++11 initialization, ({...})
if (Token::Match(tok, "%var%|(|, {")) if (Token::Match(tok, "%var%|(|, {"))
tok = tok->linkAt(1); tok = tok->linkAt(1);
else if (tok->str() == "(") else if (Token::Match(tok, "[(<]") && tok->link())
tok = tok->link(); tok = tok->link();
if (tok->varId() || !Token::Match(tok, "%name% (")) if (tok->varId() || !Token::Match(tok, "%name% ("))