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 (tok->str() == "for") {
|
||||||
if (!Token::simpleMatch(tok->next()->link(), ") {"))
|
if (!Token::simpleMatch(tok->next()->link(), ") {"))
|
||||||
continue;
|
continue;
|
||||||
const Token *bodyTok = tok->next()->link()->next();
|
|
||||||
const Token *splitTok = tok->next()->astOperand2();
|
const Token *splitTok = tok->next()->astOperand2();
|
||||||
if (!Token::simpleMatch(splitTok, ":"))
|
if (!Token::simpleMatch(splitTok, ":"))
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Reference in New Issue