From dcde2a0bae0938bfad4ff39087cbcb4a294b23c3 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 13 May 2024 18:27:10 +0200 Subject: [PATCH] lib/nfs/Connection: fix -Wunused-lambda-capture --- src/lib/nfs/Connection.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/nfs/Connection.cxx b/src/lib/nfs/Connection.cxx index 41feebc74..e3d1fc885 100644 --- a/src/lib/nfs/Connection.cxx +++ b/src/lib/nfs/Connection.cxx @@ -598,7 +598,7 @@ NfsConnection::BroadcastMountError(std::exception_ptr e) noexcept assert(GetEventLoop().IsInside()); assert(mount_state == MountState::FINISHED); - new_leases.clear_and_dispose([this, &e](auto *l){ + new_leases.clear_and_dispose([&e](auto *l){ l->OnNfsConnectionFailed(e); }); @@ -610,7 +610,7 @@ NfsConnection::BroadcastError(std::exception_ptr e) noexcept { assert(GetEventLoop().IsInside()); - active_leases.clear_and_dispose([this, &e](auto *l){ + active_leases.clear_and_dispose([&e](auto *l){ l->OnNfsConnectionDisconnected(e); });