From: Martin Quinson Date: Mon, 14 Sep 2015 10:17:00 +0000 (+0200) Subject: [MSVC] help that stupid parser: we are not closing any comment here... X-Git-Tag: v3_12~194 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/6cc4e43479c46e58586d91af850f5420f4d77312 [MSVC] help that stupid parser: we are not closing any comment here... -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 --- diff --git a/src/surf/cpu_ti.hpp b/src/surf/cpu_ti.hpp index 0841580e16..10ec1b030f 100644 --- a/src/surf/cpu_ti.hpp +++ b/src/surf/cpu_ti.hpp @@ -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; diff --git a/src/surf/network_constant.cpp b/src/surf/network_constant.cpp index 9461678078..111988202e 100644 --- a/src/surf/network_constant.cpp +++ b/src/surf/network_constant.cpp @@ -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 } diff --git a/src/surf/network_interface.hpp b/src/surf/network_interface.hpp index ae9ce5dcae..cef6fbd660 100644 --- a/src/surf/network_interface.hpp +++ b/src/surf/network_interface.hpp @@ -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. diff --git a/src/surf/surf_routing_none.cpp b/src/surf/surf_routing_none.cpp index 49954699ee..4652b56490 100644 --- a/src/surf/surf_routing_none.cpp +++ b/src/surf/surf_routing_none.cpp @@ -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; }