CheckFunctions::checkIgnoredReturnValue: Fixed unwanted DacaWrongData messages

This commit is contained in:
Daniel Marjamäki 2021-01-23 18:19:51 +01:00
parent 772b44d11a
commit 3f2d9c03b2
1 changed files with 1 additions and 1 deletions

View File

@ -204,7 +204,7 @@ void CheckFunctions::checkIgnoredReturnValue()
else if (Token::Match(tok, "[(<]") && tok->link()) 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% (") || tok->isKeyword())
continue; continue;
if (tok->next()->astParent()) if (tok->next()->astParent())