From: Ronen Friedman Date: Wed, 30 Dec 2020 06:35:00 +0000 (+0200) Subject: librbd/migration: removing an unused capture X-Git-Tag: v16.1.0~154^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F38738%2Fhead;p=ceph.git librbd/migration: removing an unused capture ...silencing a compiler warning. Signed-off-by: Ronen Friedman --- diff --git a/src/test/librbd/migration/test_mock_RawFormat.cc b/src/test/librbd/migration/test_mock_RawFormat.cc index fd83de013be0..6b69bf20c4be 100644 --- a/src/test/librbd/migration/test_mock_RawFormat.cc +++ b/src/test/librbd/migration/test_mock_RawFormat.cc @@ -127,7 +127,7 @@ public: void expect_close(MockTestImageCtx &mock_image_ctx, int r) { EXPECT_CALL(*mock_image_ctx.state, close(_)) - .WillOnce(Invoke([this, r](Context* ctx) { + .WillOnce(Invoke([r](Context* ctx) { ctx->complete(r); })); }