From 34b20c9b8fb4093575385be4579cad4193ca2a09 Mon Sep 17 00:00:00 2001 From: Frederic Suter Date: Thu, 19 Mar 2020 16:55:17 +0100 Subject: [PATCH] please sonar --- examples/s4u/dht-kademlia/routing_table.hpp | 2 +- teshsuite/s4u/host-on-off-actors/host-on-off-actors.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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()); -- 2.20.1