]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/seastar/include/seastar/core/alien.hh
import 15.2.0 Octopus source
[ceph.git] / ceph / src / seastar / include / seastar / core / alien.hh
index 3226eafe8a5261b724e2b60e95cfe1009c266f1e..e845ac1db4cba2fb4e2eb99928e4c4250012395a 100644 (file)
@@ -161,7 +161,8 @@ std::future<T> submit_to(unsigned shard, Func func) {
     std::promise<T> pr;
     auto fut = pr.get_future();
     run_on(shard, [pr = std::move(pr), func = std::move(func)] () mutable {
-        func().then_wrapped([pr = std::move(pr)] (auto&& result) mutable {
+        // std::future returned via std::promise above.
+        (void)func().then_wrapped([pr = std::move(pr)] (auto&& result) mutable {
             try {
                 internal::return_type_of<Func>::set(pr, result.get());
             } catch (...) {