Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[sonar] Declare function "noreturn".
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Wed, 1 Jul 2020 20:33:07 +0000 (22:33 +0200)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Wed, 1 Jul 2020 20:33:07 +0000 (22:33 +0200)
teshsuite/s4u/host-on-off-actors/host-on-off-actors.cpp

index 0f8701d..c681ddf 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());