From 3f2d9c03b2f6e66dbd840cda1d271c2023696853 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sat, 23 Jan 2021 18:19:51 +0100 Subject: [PATCH] CheckFunctions::checkIgnoredReturnValue: Fixed unwanted DacaWrongData messages --- lib/checkfunctions.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/checkfunctions.cpp b/lib/checkfunctions.cpp index a7db0baca..a93274c03 100644 --- a/lib/checkfunctions.cpp +++ b/lib/checkfunctions.cpp @@ -204,7 +204,7 @@ void CheckFunctions::checkIgnoredReturnValue() else if (Token::Match(tok, "[(<]") && tok->link()) tok = tok->link(); - if (tok->varId() || !Token::Match(tok, "%name% (")) + if (tok->varId() || !Token::Match(tok, "%name% (") || tok->isKeyword()) continue; if (tok->next()->astParent())