From: Augustin Degomme Date: Wed, 23 Feb 2022 22:36:04 +0000 (+0100) Subject: try to get rid of a warning (without causing a dead store in infer?) X-Git-Tag: v3.31~330 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/933b8cc92b1baf5673fc0f31319c0394f1cdf51c try to get rid of a warning (without causing a dead store in infer?) --- diff --git a/src/s4u/s4u_Comm.cpp b/src/s4u/s4u_Comm.cpp index cd8ea25a73..e834664a98 100644 --- a/src/s4u/s4u_Comm.cpp +++ b/src/s4u/s4u_Comm.cpp @@ -46,6 +46,7 @@ ssize_t Comm::wait_any_for(const std::vector& comms, double timeout) try { changed_pos = Activity::wait_any_for(activities, timeout); } catch (const NetworkFailureException& e) { + changed_pos = -1; for (auto c : comms) { if (c->pimpl_->get_state() == kernel::activity::State::FAILED) { c->complete(State::FAILED);