Travis: Fixed Cppcheck warning

This commit is contained in:
Daniel Marjamäki 2020-02-27 10:51:34 +01:00
parent 38b570138f
commit baa4cee70c
1 changed files with 1 additions and 1 deletions

View File

@ -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() == ",") {