Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[MSVC] help that stupid parser: we are not closing any comment here...
authorMartin Quinson <martin.quinson@loria.fr>
Mon, 14 Sep 2015 10:17:00 +0000 (12:17 +0200)
committerMartin Quinson <martin.quinson@loria.fr>
Mon, 14 Sep 2015 12:10:20 +0000 (14:10 +0200)
-void NetworkConstantAction::setCategory(const char */*category*/)
+void NetworkConstantAction::setCategory(const char * /*category*/)

When seing char >>> */* blah */ <<<, MSVC spits the following message:
  warning C4138: '*/' found outside of comment

src/surf/cpu_ti.hpp
src/surf/network_constant.cpp
src/surf/network_interface.hpp
src/surf/surf_routing_none.cpp

index 0841580..10ec1b0 100644 (file)
@@ -168,7 +168,7 @@ public:
   void setMaxDuration(double duration);
   void setPriority(double priority);
   double getRemains();
-  void setAffinity(Cpu */*cpu*/, unsigned long /*mask*/) {};
+  void setAffinity(Cpu * /*cpu*/, unsigned long /*mask*/) {};
 
   CpuTi *p_cpu;
   int m_indexHeap;
index 9461678..1119882 100644 (file)
@@ -116,7 +116,7 @@ void NetworkConstantAction::cancel()
   return;
 }
 
-void NetworkConstantAction::setCategory(const char */*category*/)
+void NetworkConstantAction::setCategory(const char * /*category*/)
 {
   //ignore completely the categories in constant model, they are not traced
 }
index ae9ce5d..cef6fbd 100644 (file)
@@ -109,7 +109,7 @@ public:
                                    e_surf_link_sharing_policy_t policy,
                                    xbt_dict_t properties)=0;
 
-  virtual void gapAppend(double /*size*/, const Link* /*link*/, NetworkAction */*action*/) {};
+  virtual void gapAppend(double /*size*/, const Link* /*link*/, NetworkAction * /*action*/) {};
 
   /**
    * @brief Create a communication between two hosts.
index 4995469..4652b56 100644 (file)
@@ -17,7 +17,7 @@ xbt_dynar_t AsNone::getOneLinkRoutes() {
   return NULL;
 }
 
-void AsNone::getRouteAndLatency(RoutingEdge */*src*/, RoutingEdge */*dst*/,
+void AsNone::getRouteAndLatency(RoutingEdge * /*src*/, RoutingEdge * /*dst*/,
                                 sg_platf_route_cbarg_t /*res*/, double *lat)
 {
   *lat = 0.0;
@@ -28,7 +28,7 @@ void AsNone::getGraph(xbt_graph_t /*graph*/, xbt_dict_t /*nodes*/, xbt_dict_t /*
        XBT_INFO("No routing no graph");
 }
 
-sg_platf_route_cbarg_t AsNone::getBypassRoute(RoutingEdge */*src*/, RoutingEdge */*dst*/, double */*lat*/) {
+sg_platf_route_cbarg_t AsNone::getBypassRoute(RoutingEdge * /*src*/, RoutingEdge * /*dst*/, double * /*lat*/) {
   return NULL;
 }