Fixed #8022 (DacaWrongData: checkIgnoredReturnValue, hana)
This commit is contained in:
parent
453058c059
commit
f86d8244fa
|
@ -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% ("))
|
||||||
|
|
Loading…
Reference in New Issue