this change silences the warning from clang, like:
../src/crimson/common/interruptible_future.h:276:8: warning: lambda capture 'this' is not used [-Wunused-lambda-capture]
[this, func=std::move(func),
^
Signed-off-by: Kefu Chai <kchai@redhat.com>
[[gnu::always_inline]]
auto handle_interruption(Func&& func) {
return core_type::then_wrapped(
- [this, func=std::move(func),
+ [func=std::move(func),
interrupt_condition=interrupt_cond<InterruptCond>](auto&& fut) mutable {
if (fut.failed()) {
std::exception_ptr ex = fut.get_exception();