Skip to content

Commit 58af3c7

Browse files
committed
Suppress Cppcheck false positive
1 parent c6452ad commit 58af3c7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/tokenlist.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1461,7 +1461,7 @@ static Token * createAstAtToken(Token *tok, bool cpp)
14611461
compileExpression(tok2, state1);
14621462
if (Token::Match(tok2, ";|)"))
14631463
break;
1464-
init1 = nullptr;
1464+
init1 = nullptr; // cppcheck-suppress redundantAssignment ; FALSE POSITIVE
14651465
}
14661466
if (!tok2) // #7109 invalid code
14671467
return nullptr;

0 commit comments

Comments
 (0)