From: Martin Quinson Date: Sun, 2 Jun 2019 19:11:46 +0000 (+0200) Subject: Avoid a >>unused parameter ‘host’<< error on user code X-Git-Tag: v3.22.4~20 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/368116957067e4a3afed821edb8a2cd5435ea7a5 Avoid a >>unused parameter ‘host’<< error on user code --- diff --git a/include/simgrid/s4u/Exec.hpp b/include/simgrid/s4u/Exec.hpp index 90a2e57d5f..6515064b1b 100644 --- a/include/simgrid/s4u/Exec.hpp +++ b/include/simgrid/s4u/Exec.hpp @@ -97,7 +97,7 @@ class XBT_PUBLIC ExecPar : public Exec { std::vector bytes_amounts_; explicit ExecPar(const std::vector& hosts, const std::vector& flops_amounts, const std::vector& bytes_amounts); - ExecPtr set_host(Host* host) override { THROW_UNIMPLEMENTED; } + ExecPtr set_host(Host*) override { /* parallel exec cannot be moved */ THROW_UNIMPLEMENTED; } public: ~ExecPar() = default;