Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
try to get rid of a warning (without causing a dead store in infer?)
authorAugustin Degomme <adegomme@users.noreply.github.com>
Wed, 23 Feb 2022 22:36:04 +0000 (23:36 +0100)
committerAugustin Degomme <adegomme@users.noreply.github.com>
Wed, 23 Feb 2022 22:36:04 +0000 (23:36 +0100)
src/s4u/s4u_Comm.cpp

index cd8ea25..e834664 100644 (file)
@@ -46,6 +46,7 @@ ssize_t Comm::wait_any_for(const std::vector<CommPtr>& 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);