From baa4cee70c41efd75370a9f72ddddd54a08778cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Thu, 27 Feb 2020 10:51:34 +0100 Subject: [PATCH] Travis: Fixed Cppcheck warning --- lib/tokenlist.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tokenlist.cpp b/lib/tokenlist.cpp index 4b782d48a..9a4f12b64 100644 --- a/lib/tokenlist.cpp +++ b/lib/tokenlist.cpp @@ -1346,7 +1346,7 @@ static Token * createAstAtToken(Token *tok, bool cpp) Token *decl = Token::findsimplematch(tok, "["); if (Token::simpleMatch(decl->link(), "] :")) { AST_state state1(cpp); - while (decl && decl->str() != "]") { + while (decl->str() != "]") { if (Token::Match(decl, "%name% ,|]")) { state1.op.push(decl); } else if (decl->str() == ",") {