Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Make prototype match overloaded function from class NetworkModel.
authorArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Thu, 5 Dec 2013 13:53:16 +0000 (14:53 +0100)
committerArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Thu, 5 Dec 2013 21:20:04 +0000 (22:20 +0100)
Fixes Clang warning.

src/surf/network_cm02.hpp
src/surf/network_smpi.cpp
src/surf/network_smpi.hpp

index bd8821a..fe939b6 100644 (file)
@@ -52,7 +52,6 @@ public:
                                    e_surf_link_sharing_policy_t policy,
                                    xbt_dict_t properties);
   void updateActionsStateLazy(double now, double delta);
-  void gapAppend(double /*size*/, const NetworkCm02LinkLmmPtr /*link*/, NetworkCm02ActionLmmPtr /*action*/) {};
   ActionPtr communicate(RoutingEdgePtr src, RoutingEdgePtr dst,
                                           double size, double rate);
 };
index 8f707a5..6d52fc7 100644 (file)
@@ -99,7 +99,7 @@ NetworkSmpiModel::~NetworkSmpiModel(){
   }
 }
 
-void NetworkSmpiModel::gapAppend(double size, const NetworkCm02LinkLmmPtr link, NetworkCm02ActionLmmPtr action)
+void NetworkSmpiModel::gapAppend(double size, const NetworkLinkLmmPtr link, NetworkActionLmmPtr action)
 {
   const char *src = link->m_name;
   xbt_fifo_t fifo;
index e16ba5e..9f7e809 100644 (file)
@@ -20,7 +20,7 @@ public:
   NetworkSmpiModel();
   ~NetworkSmpiModel();
 
-  void gapAppend(double size, const NetworkCm02LinkLmmPtr link, NetworkCm02ActionLmmPtr action);
+  void gapAppend(double size, const NetworkLinkLmmPtr link, NetworkActionLmmPtr action);
   void gapRemove(ActionLmmPtr action);
   double latencyFactor(double size);
   double bandwidthFactor(double size);