From ea59736ebf1507f583035e3599735fde2187ddee Mon Sep 17 00:00:00 2001 From: "Adam C. Emerson" Date: Mon, 7 Mar 2022 22:09:46 -0500 Subject: [PATCH] test: Fix implicit-this lambda capture warning Signed-off-by: Adam C. Emerson --- src/test/librados_test_stub/TestWatchNotify.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/librados_test_stub/TestWatchNotify.cc b/src/test/librados_test_stub/TestWatchNotify.cc index 3b18026bbf0f..48aaf64ef14f 100644 --- a/src/test/librados_test_stub/TestWatchNotify.cc +++ b/src/test/librados_test_stub/TestWatchNotify.cc @@ -107,7 +107,7 @@ void TestWatchNotify::aio_watch(TestRadosClient *rados_client, int64_t pool_id, librados::WatchCtx *watch_ctx, librados::WatchCtx2 *watch_ctx2, Context *on_finish) { - auto ctx = new LambdaContext([=](int) { + auto ctx = new LambdaContext([=, this](int) { execute_watch(rados_client, pool_id, nspace, o, gid, handle, watch_ctx, watch_ctx2, on_finish); }); @@ -134,7 +134,7 @@ void TestWatchNotify::aio_notify(TestRadosClient *rados_client, int64_t pool_id, const std::string& oid, const bufferlist& bl, uint64_t timeout_ms, bufferlist *pbl, Context *on_notify) { - auto ctx = new LambdaContext([=](int) { + auto ctx = new LambdaContext([=, this](int) { execute_notify(rados_client, pool_id, nspace, oid, bl, pbl, on_notify); }); rados_client->get_aio_finisher()->queue(ctx); -- 2.47.3