Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
some captured params for llambda were unused, triggering new warning in clang 5
[simgrid.git] / include / simgrid / simix / blocking_simcall.hpp
index 3a41904..6341521 100644 (file)
@@ -94,7 +94,7 @@ public:
     simcall_run_blocking([this, &result, self]{
       try {
         // When the kernel future is ready...
-        this->future_.then_([this, &result, self](simgrid::kernel::Future<T> value) {
+        this->future_.then_([&result, self](simgrid::kernel::Future<T> value) {
           // ... wake up the process with the result of the kernel future.
           simgrid::xbt::setPromise(result, value);
           simgrid::simix::unblock(self);