From 9cbdc262f612d4d3b762ebd73ebdd67e8e54abc9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Fri, 23 Aug 2019 16:56:28 +0200 Subject: [PATCH] Fix Cppcheck internal warning --- lib/checkother.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/checkother.cpp b/lib/checkother.cpp index 68aff5a2c..8b60d446d 100644 --- a/lib/checkother.cpp +++ b/lib/checkother.cpp @@ -437,7 +437,7 @@ void CheckOther::checkRedundantAssignment() bool trivial = true; visitAstNodes(tok->astOperand2(), [&](const Token *rhs) { - if (Token::Match(rhs, "{ 0 }")) + if (Token::simpleMatch(rhs, "{ 0 }")) return ChildrenToVisit::none; if (Token::Match(rhs, "%str%|%num%|%name%") && !rhs->varId()) return ChildrenToVisit::none;