Removing a useless variable to fix cppcheck warning in its own code
This commit is contained in:
parent
37befc75ef
commit
cdd6d4df27
|
@ -788,7 +788,6 @@ static void valueFlowForLoopSimplify(Token * const bodyStart, const unsigned int
|
|||
}
|
||||
|
||||
else if (Token::Match(tok2, ") {") && Token::findmatch(tok2->link(), "%varid%", tok2, varid)) {
|
||||
const Token *start = tok2->link();
|
||||
if (settings->debugwarnings)
|
||||
bailout(tokenlist, errorLogger, tok2, "For loop variable stopping on {");
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue