diff --git a/libs/pika/async_mpi/include/pika/async_mpi/transform_mpi.hpp b/libs/pika/async_mpi/include/pika/async_mpi/transform_mpi.hpp index 52439a991..71a348d3c 100644 --- a/libs/pika/async_mpi/include/pika/async_mpi/transform_mpi.hpp +++ b/libs/pika/async_mpi/include/pika/async_mpi/transform_mpi.hpp @@ -65,7 +65,7 @@ namespace pika::mpi::experimental { if (completions_inline) { - auto f_completion = [mode, p, f = std::forward(f)](auto&... args) mutable { + auto f_completion = [mode, f = std::forward(f)](auto&... args) mutable { return just(std::forward_as_tuple(args...)) | unpack() | dispatch_mpi(std::move(f)) | trigger_mpi(mode); };