From f86d8244fae2d857f46d5a88fc68ec7be9df3878 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sat, 10 Jun 2017 08:23:26 +0200 Subject: [PATCH] Fixed #8022 (DacaWrongData: checkIgnoredReturnValue, hana) --- lib/checkfunctions.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/checkfunctions.cpp b/lib/checkfunctions.cpp index 7929fe89a..0cec4c369 100644 --- a/lib/checkfunctions.cpp +++ b/lib/checkfunctions.cpp @@ -182,7 +182,7 @@ void CheckFunctions::checkIgnoredReturnValue() // skip c++11 initialization, ({...}) if (Token::Match(tok, "%var%|(|, {")) tok = tok->linkAt(1); - else if (tok->str() == "(") + else if (Token::Match(tok, "[(<]") && tok->link()) tok = tok->link(); if (tok->varId() || !Token::Match(tok, "%name% ("))