From 933b8cc92b1baf5673fc0f31319c0394f1cdf51c Mon Sep 17 00:00:00 2001 From: Augustin Degomme Date: Wed, 23 Feb 2022 23:36:04 +0100 Subject: [PATCH] try to get rid of a warning (without causing a dead store in infer?) --- src/s4u/s4u_Comm.cpp | 1 + 1 file changed, 1 insertion(+) 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); -- 2.20.1