From b84501682d66c13a30f3861055e2318d12d2ca60 Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Wed, 15 Feb 2017 16:37:01 +0100 Subject: [PATCH] make some C functions as such to please sonar --- src/surf/plugins/host_energy.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/surf/plugins/host_energy.cpp b/src/surf/plugins/host_energy.cpp index 8aa4cc0478..310bd66fa4 100644 --- a/src/surf/plugins/host_energy.cpp +++ b/src/surf/plugins/host_energy.cpp @@ -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()->getWattMaxAt(pstate); } + +SG_END_DECL() -- 2.20.1