tokenlist.cpp: fixed GCC `-Wunused-variable` warning (#5266)
Added https://trac.cppcheck.net/ticket/11847 about the false negative.
This commit is contained in:
parent
c5deb0a631
commit
265759dfa4
|
@ -1747,7 +1747,7 @@ void TokenList::validateAst() const
|
|||
continue;
|
||||
}
|
||||
|
||||
if (const Token* lambdaEnd = findLambdaEndToken(tok)) { // skip lambda captures
|
||||
if (findLambdaEndToken(tok)) { // skip lambda captures
|
||||
tok = tok->link();
|
||||
continue;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue