Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Reduce scope for static variables.
[simgrid.git] / src / kernel / actor / SimcallObserver.cpp
index 1d402ab..b4422d5 100644 (file)
@@ -41,8 +41,7 @@ int RandomSimcall::get_max_consider()
 
 bool ConditionWaitSimcall::is_enabled()
 {
-  static bool warned = false;
-  if (not warned) {
+  if (static bool warned = false; not warned) {
     XBT_INFO("Using condition variables in model-checked code is still experimental. Use at your own risk");
     warned = true;
   }