Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
New example: activityset-waitallfor
[simgrid.git] / examples / platforms / supernode.cpp
index d3f9126..fa2c42d 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2006-2022. The SimGrid Team. All rights reserved.          */
+/* Copyright (c) 2006-2023. The SimGrid Team. All rights reserved.          */
 
 /* This program is free software; you can redistribute it and/or modify it
  * under the terms of the license (GNU LGPL) which comes with this package. */
@@ -59,7 +59,7 @@ static sg4::NetZone* create_supernode(const sg4::NetZone* root, const std::strin
     const auto& linkname  = "link_" + node_name;
 
     sg4::NetZone* node = create_node(supernode, node_name, nb_cpu);
-    const auto router  = node->create_router("router_" + node_name);
+    auto* router       = node->create_router("router_" + node_name);
     node->seal();
 
     const sg4::Link* l = supernode->create_split_duplex_link(linkname, BW_NODE)->set_latency(LAT_NODE)->seal();
@@ -83,7 +83,7 @@ static sg4::NetZone* create_cluster(const std::string& cluster_name, const int n
     const auto& linkname       = "link_" + supernode_name;
 
     sg4::NetZone* supernode = create_supernode(cluster, supernode_name, nb_nodes, nb_cpu);
-    const auto router       = supernode->create_router("router_" + supernode_name);
+    auto* router            = supernode->create_router("router_" + supernode_name);
     supernode->seal();
 
     const sg4::Link* l = cluster->create_split_duplex_link(linkname, BW_NETWORK)->set_latency(LAT_NETWORK)->seal();
@@ -94,7 +94,7 @@ static sg4::NetZone* create_cluster(const std::string& cluster_name, const int n
 }
 
 extern "C" void load_platform(const sg4::Engine& e);
-void load_platform(const sg4::Engine& e)
+void load_platform(const sg4::Engine&)
 {
   create_cluster("cluster", 4, 6, 2)->seal();
 }