tokenlist.cpp: fixed GCC `-Wunused-variable` warning (#5266)

Added https://trac.cppcheck.net/ticket/11847 about the false negative.
This commit is contained in:
Oliver Stöneberg 2023-07-27 07:27:04 +02:00 committed by GitHub
parent c5deb0a631
commit 265759dfa4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}