Skip to content

Commit 265759d

Browse files
authored
tokenlist.cpp: fixed GCC -Wunused-variable warning (#5266)
Added https://trac.cppcheck.net/ticket/11847 about the false negative.
1 parent c5deb0a commit 265759d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/tokenlist.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1747,7 +1747,7 @@ void TokenList::validateAst() const
17471747
continue;
17481748
}
17491749

1750-
if (const Token* lambdaEnd = findLambdaEndToken(tok)) { // skip lambda captures
1750+
if (findLambdaEndToken(tok)) { // skip lambda captures
17511751
tok = tok->link();
17521752
continue;
17531753
}

0 commit comments

Comments
 (0)