Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
make some C functions as such to please sonar
authorMartin Quinson <martin.quinson@loria.fr>
Wed, 15 Feb 2017 15:37:01 +0000 (16:37 +0100)
committerMartin Quinson <martin.quinson@loria.fr>
Wed, 15 Feb 2017 15:37:01 +0000 (16:37 +0100)
src/surf/plugins/host_energy.cpp

index 8aa4cc0..310bd66 100644 (file)
@@ -308,6 +308,8 @@ static void onHostDestruction(simgrid::s4u::Host& host)
 }
 
 /* **************************** Public interface *************************** */
+SG_BEGIN_DECL()
+
 /** \ingroup SURF_plugin_energy
  * \brief Enable host energy plugin
  * \details Enable energy plugin to get joules consumption of each cpu. Call this function before #MSG_init().
@@ -351,3 +353,5 @@ double sg_host_get_wattmax_at(sg_host_t host, int pstate)
              "The Energy plugin is not active. Please call sg_energy_plugin_init() during initialization.");
   return host->extension<HostEnergy>()->getWattMaxAt(pstate);
 }
+
+SG_END_DECL()