From d022e24face6ff1adf6d1d0e6f635ce9738bcabd Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Thu, 19 Jul 2018 21:34:46 +0200 Subject: [PATCH 1/1] Remove useless thread_local. It doesn't make any difference if context/factory is not "thread". --- src/plugins/host_energy.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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." -- 2.20.1