Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
missing static keyword
authorAdrien Gougeon <adrien.gougeon@ens-rennes.fr>
Thu, 2 Nov 2023 17:37:50 +0000 (18:37 +0100)
committerAdrien Gougeon <adrien.gougeon@ens-rennes.fr>
Thu, 2 Nov 2023 17:37:50 +0000 (18:37 +0100)
examples/cpp/chiller-simple/s4u-chiller-simple.cpp

index 915c8a1..db48b65 100644 (file)
@@ -10,7 +10,7 @@
 XBT_LOG_NEW_DEFAULT_CATEGORY(chiller_simple, "Messages specific for this s4u example");
 namespace sg4 = simgrid::s4u;
 
-void display_chiller(simgrid::plugins::ChillerPtr c)
+static void display_chiller(simgrid::plugins::ChillerPtr c)
 {
   XBT_INFO("%s: Power: %.2fW T_in: %.2f°C Energy consumed: %.2fJ", c->get_cname(), c->get_power(), c->get_temp_in(),
            c->get_energy_consumed());