From: Arnaud Giersch Date: Thu, 19 Jul 2018 19:34:46 +0000 (+0200) Subject: Remove useless thread_local. X-Git-Tag: v3_21~355^2~9 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/d022e24face6ff1adf6d1d0e6f635ce9738bcabd?hp=dbe51c601ca2336e834c7b8da15f8b8317573dcf Remove useless thread_local. It doesn't make any difference if context/factory is not "thread". --- diff --git a/src/plugins/host_energy.cpp b/src/plugins/host_energy.cpp index 9190065a47..4140befa88 100644 --- a/src/plugins/host_energy.cpp +++ b/src/plugins/host_energy.cpp @@ -351,7 +351,7 @@ void HostEnergy::init_watts_range_list() current_power_values.push_back(current_power_values.at(1)); } else { // size == 3 current_power_values[2] = current_power_values.at(1); - static thread_local bool displayed_warning = false; + static bool displayed_warning = false; if (not displayed_warning) { // Otherwise we get in the worst case no_pstate*no_hosts warnings XBT_WARN("Host %s is a single-core machine and part of the power profile is '%s'" ", which is in the 'Idle:OneCore:AllCores' format."