Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[sonar] Move explaining comment inside body of empty function.
[simgrid.git] / src / surf / ptask_L07.hpp
index 632ef4a..cf70d56 100644 (file)
@@ -51,10 +51,11 @@ public:
   CpuL07Model(const CpuL07Model&) = delete;
   CpuL07Model& operator=(const CpuL07Model&) = delete;
   ~CpuL07Model() override;
-  /* this action is done by HostL07Model which shares the LMM system with the CPU model
-   * Overriding to an empty function here allows us to handle the Cpu07Model as a regular
-   * method in surf_presolve */
-  void update_actions_state(double now, double delta) override{};
+  void update_actions_state(double /*now*/, double /*delta*/) override{
+      /* this action is done by HostL07Model which shares the LMM system with the CPU model
+       * Overriding to an empty function here allows us to handle the Cpu07Model as a regular
+       * method in surf_presolve */
+  };
 
   kernel::resource::Cpu* create_cpu(s4u::Host* host, const std::vector<double>& speed_per_pstate) override;
   HostL07Model* hostModel_;
@@ -70,10 +71,11 @@ public:
                                           s4u::Link::SharingPolicy policy) override;
 
   kernel::resource::Action* communicate(s4u::Host* src, s4u::Host* dst, double size, double rate) override;
-  /* this action is done by HostL07Model which shares the LMM system with the CPU model
-   * Overriding to an empty function here allows us to handle the Cpu07Model as a regular
-   * method in surf_presolve */
-  void update_actions_state(double now, double delta) override{};
+  void update_actions_state(double /*now*/, double /*delta*/) override{
+      /* this action is done by HostL07Model which shares the LMM system with the CPU model
+       * Overriding to an empty function here allows us to handle the Cpu07Model as a regular
+       * method in surf_presolve */
+  };
 
   HostL07Model* hostModel_;
 };