Suppress Cppcheck false positive
This commit is contained in:
parent
c6452adc88
commit
58af3c7ad7
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue