From 9a357964cfeb78bcb01d5db716c8abaac1b47c43 Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Mon, 12 Mar 2018 22:58:40 +0100 Subject: [PATCH 1/1] Reduce the scope of a variable to please codacy even if it's totally pointless in this case. --- src/simix/smx_global.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/simix/smx_global.cpp b/src/simix/smx_global.cpp index adbd7e9254..a5f316f2d6 100644 --- a/src/simix/smx_global.cpp +++ b/src/simix/smx_global.cpp @@ -339,9 +339,9 @@ double SIMIX_get_clock() /** Wake up all processes waiting for a Surf action to finish */ static void SIMIX_wake_processes() { - simgrid::kernel::resource::Action* action; - for (auto const& model : *all_existing_models) { + simgrid::kernel::resource::Action* action; + XBT_DEBUG("Handling the processes whose action failed (if any)"); while ((action = surf_model_extract_failed_action_set(model))) { XBT_DEBUG(" Handling Action %p",action); -- 2.20.1