Skip to content

Commit 3f2d9c0

Browse files
committed
CheckFunctions::checkIgnoredReturnValue: Fixed unwanted DacaWrongData messages
1 parent 772b44d commit 3f2d9c0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/checkfunctions.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ void CheckFunctions::checkIgnoredReturnValue()
204204
else if (Token::Match(tok, "[(<]") && tok->link())
205205
tok = tok->link();
206206

207-
if (tok->varId() || !Token::Match(tok, "%name% ("))
207+
if (tok->varId() || !Token::Match(tok, "%name% (") || tok->isKeyword())
208208
continue;
209209

210210
if (tok->next()->astParent())

0 commit comments

Comments
 (0)