Suppress Cppcheck false positive

This commit is contained in:
Daniel Marjamäki 2020-12-04 19:37:58 +01:00
parent c6452adc88
commit 58af3c7ad7
1 changed files with 1 additions and 1 deletions

View File

@ -1461,7 +1461,7 @@ static Token * createAstAtToken(Token *tok, bool cpp)
compileExpression(tok2, state1); compileExpression(tok2, state1);
if (Token::Match(tok2, ";|)")) if (Token::Match(tok2, ";|)"))
break; break;
init1 = nullptr; init1 = nullptr; // cppcheck-suppress redundantAssignment ; FALSE POSITIVE
} }
if (!tok2) // #7109 invalid code if (!tok2) // #7109 invalid code
return nullptr; return nullptr;