Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
please sonar
authorFrederic Suter <frederic.suter@cc.in2p3.fr>
Thu, 19 Mar 2020 15:55:17 +0000 (16:55 +0100)
committerFrederic Suter <frederic.suter@cc.in2p3.fr>
Thu, 19 Mar 2020 15:55:17 +0000 (16:55 +0100)
examples/s4u/dht-kademlia/routing_table.hpp
teshsuite/s4u/host-on-off-actors/host-on-off-actors.cpp

index c77b216..1c609d4 100644 (file)
@@ -18,7 +18,7 @@ class Bucket {
 public:
   std::deque<unsigned int> nodes; // Nodes in the bucket.
   unsigned int getId() const { return id_; }
-  explicit Bucket(unsigned int id) : id_(id) {}
+  explicit Bucket(unsigned int id) noexcept : id_(id) {}
 };
 
 /* Node routing table */
index 246ceec..37fa239 100644 (file)
@@ -10,7 +10,7 @@ XBT_LOG_NEW_DEFAULT_CATEGORY(s4u_test, "Messages specific for this s4u example")
 
 int tasks_done = 0;
 
-static void actor_daemon()
+XBT_ATTRIB_NORETURN static void actor_daemon()
 {
   const simgrid::s4u::Host* host = simgrid::s4u::Host::current();
   XBT_INFO("  Start daemon on %s (%f)", host->get_cname(), host->get_speed());