Fixed GCC warning, variable bodyTok is unused. False negative ticket: #9876

This commit is contained in:
Daniel Marjamäki 2020-09-05 08:17:40 +02:00
parent a102574e3f
commit 7d51baa2f0
1 changed files with 0 additions and 1 deletions

View File

@ -2547,7 +2547,6 @@ void CheckStl::knownEmptyContainer()
if (tok->str() == "for") {
if (!Token::simpleMatch(tok->next()->link(), ") {"))
continue;
const Token *bodyTok = tok->next()->link()->next();
const Token *splitTok = tok->next()->astOperand2();
if (!Token::simpleMatch(splitTok, ":"))
continue;