Skip to content

Commit

Permalink
tokenlist.cpp: fixed GCC -Wunused-variable warning (#5266)
Browse files Browse the repository at this point in the history
Added https://trac.cppcheck.net/ticket/11847 about the false negative.
  • Loading branch information
firewave authored Jul 27, 2023
1 parent c5deb0a commit 265759d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tokenlist.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 265759d

Please sign in to comment.