Fixed GCC warning, variable bodyTok is unused. False negative ticket: #9876
This commit is contained in:
parent
a102574e3f
commit
7d51baa2f0
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue