Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
useless cosmetics
authorMartin Quinson <martin.quinson@ens-rennes.fr>
Sat, 3 Oct 2020 10:33:11 +0000 (12:33 +0200)
committerMartin Quinson <martin.quinson@ens-rennes.fr>
Sun, 4 Oct 2020 22:53:39 +0000 (00:53 +0200)
include/simgrid/kernel/routing/ClusterZone.hpp
src/kernel/routing/NetZoneImpl.cpp
src/surf/sg_platf.cpp

index f6ab794..030fa6a 100644 (file)
@@ -74,7 +74,7 @@ public:
                  std::map<std::string, xbt_edge_t>* edges) override;
 
   virtual void create_links_for_node(ClusterCreationArgs* cluster, int id, int rank, unsigned int position);
-  virtual void parse_specific_arguments(ClusterCreationArgs* cluster)
+  virtual void parse_specific_arguments(ClusterCreationArgs*)
   {
     /* this routing method does not require any specific argument */
   }
index ed7e84b..f3ee075 100644 (file)
@@ -374,7 +374,7 @@ void NetZoneImpl::get_global_route(NetPoint* src, NetPoint* dst,
   /* Not in the same netzone, no bypass. We'll have to find our path between the netzones recursively */
 
   common_ancestor->get_local_route(src_ancestor->netpoint_, dst_ancestor->netpoint_, &route, latency);
-  xbt_assert((route.gw_src != nullptr) && (route.gw_dst != nullptr), "bad gateways for route from \"%s\" to \"%s\"",
+  xbt_assert((route.gw_src != nullptr) && (route.gw_dst != nullptr), "Bad gateways for route from '%s' to '%s'.",
              src->get_cname(), dst->get_cname());
 
   /* If source gateway is not our source, we have to recursively find our way up to this point */
index 9ae69ac..1a57123 100644 (file)
@@ -126,9 +126,8 @@ static void sg_platf_new_link(const simgrid::kernel::routing::LinkCreationArgs*
   simgrid::kernel::resource::LinkImpl* l =
       surf_network_model->create_link(link_name, link->bandwidths, link->latency, link->policy);
 
-  if (link->properties) {
+  if (link->properties)
     l->set_properties(*link->properties);
-  }
 
   if (link->latency_trace)
     l->set_latency_profile(link->latency_trace);