mirror of
https://github.com/ceph/ceph
synced 2024-12-28 06:23:08 +00:00
crimson/os: do not capture unused variable
silences warning like:
btree/extentmap_btree_node.h💯8: warning: lambda capture 'this' is not used [-Wunused-lambda-capture]
[this, ec, len] (auto &extents) {
^
Signed-off-by: Kefu Chai <kchai@redhat.com>
This commit is contained in:
parent
677d939b39
commit
6498d97a0e
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user