From: Frederic Suter Date: Thu, 19 Mar 2020 15:55:17 +0000 (+0100) Subject: please sonar X-Git-Tag: v3.26~725 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/34b20c9b8fb4093575385be4579cad4193ca2a09 please sonar --- diff --git a/examples/s4u/dht-kademlia/routing_table.hpp b/examples/s4u/dht-kademlia/routing_table.hpp index c77b216d75..1c609d4cec 100644 --- a/examples/s4u/dht-kademlia/routing_table.hpp +++ b/examples/s4u/dht-kademlia/routing_table.hpp @@ -18,7 +18,7 @@ class Bucket { public: std::deque 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 */ diff --git a/teshsuite/s4u/host-on-off-actors/host-on-off-actors.cpp b/teshsuite/s4u/host-on-off-actors/host-on-off-actors.cpp index 246ceec391..37fa23921d 100644 --- a/teshsuite/s4u/host-on-off-actors/host-on-off-actors.cpp +++ b/teshsuite/s4u/host-on-off-actors/host-on-off-actors.cpp @@ -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());