From: Adam C. Emerson Date: Tue, 8 Mar 2022 03:09:46 +0000 (-0500) Subject: test: Fix implicit-this lambda capture warning X-Git-Tag: v18.0.0~366^2~6 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=ea59736ebf1507f583035e3599735fde2187ddee;p=ceph-ci.git test: Fix implicit-this lambda capture warning Signed-off-by: Adam C. Emerson --- diff --git a/src/test/librados_test_stub/TestWatchNotify.cc b/src/test/librados_test_stub/TestWatchNotify.cc index 3b18026bbf0..48aaf64ef14 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);