From: Martin Quinson Date: Mon, 12 Mar 2018 21:58:40 +0000 (+0100) Subject: Reduce the scope of a variable to please codacy X-Git-Tag: v3.19~78^2~12 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/9a357964cfeb78bcb01d5db716c8abaac1b47c43?hp=ce61855d15133e7f1e5d978c6ea127ee59296d49 Reduce the scope of a variable to please codacy even if it's totally pointless in this case. --- 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);