Skip to content

Commit 7926c0b

Browse files
committed
[Sema] Fix -Wunused-but-set-variable after #94865
1 parent 8e8c455 commit 7926c0b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/Sema/SemaLambda.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1246,7 +1246,7 @@ void Sema::ActOnLambdaExpressionAfterIntroducer(LambdaIntroducer &Intro,
12461246

12471247
if (auto *BD = R.getAsSingle<BindingDecl>())
12481248
Var = BD;
1249-
else if (auto *FD = R.getAsSingle<FieldDecl>()) {
1249+
else if (R.getAsSingle<FieldDecl>()) {
12501250
Diag(C->Loc, diag::err_capture_class_member_does_not_name_variable)
12511251
<< C->Id;
12521252
continue;

0 commit comments

Comments
 (0)