]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/os: do not capture unused variable
authorKefu Chai <kchai@redhat.com>
Thu, 29 Oct 2020 08:20:12 +0000 (16:20 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 29 Oct 2020 08:32:25 +0000 (16:32 +0800)
silences warning like:

btree/extentmap_btree_node.h:100:8: warning: lambda capture 'this' is not used [-Wunused-lambda-capture]
      [this, ec, len] (auto &extents) {
       ^

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/crimson/os/seastore/extentmap_manager/btree/extentmap_btree_node.h

index f0e57c40aff5c56d011efbe017b7fef2696db860..e3ba56574c6f5b14e74a40f526bd53aff7f799d6 100644 (file)
@@ -97,7 +97,7 @@ struct ExtMapNode : LogicalCachedExtent {
   alloc_ertr::future<std::pair<TCachedExtentRef<T>, TCachedExtentRef<T>>>
   extmap_alloc_2extents(ext_context_t ec, extent_len_t len) {
     return seastar::do_with(std::pair<TCachedExtentRef<T>, TCachedExtentRef<T>>(),
-      [this, ec, len] (auto &extents) {
+      [ec, len] (auto &extents) {
       return crimson::do_for_each(boost::make_counting_iterator(0),
                                   boost::make_counting_iterator(2),
                                   [ec, len, &extents] (auto i) {