A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[sonar] Add attribute "noreturn" to non-returning functions.
[simgrid.git]
/
src
/
simix
/
smx_global.cpp
diff --git
a/src/simix/smx_global.cpp
b/src/simix/smx_global.cpp
index
8a524e1
..
cca99ec
100644
(file)
--- a/
src/simix/smx_global.cpp
+++ b/
src/simix/smx_global.cpp
@@
-33,7
+33,7
@@
std::unique_ptr<simgrid::simix::Global> simix_global;
void (*SMPI_switch_data_segment)(simgrid::s4u::ActorPtr) = nullptr;
bool _sg_do_verbose_exit = true;
void (*SMPI_switch_data_segment)(simgrid::s4u::ActorPtr) = nullptr;
bool _sg_do_verbose_exit = true;
-static void inthandler(int)
+
XBT_ATTRIB_NORETURN
static void inthandler(int)
{
if ( _sg_do_verbose_exit ) {
XBT_INFO("CTRL-C pressed. The current status will be displayed before exit (disable that behavior with option 'verbose-exit').");
{
if ( _sg_do_verbose_exit ) {
XBT_INFO("CTRL-C pressed. The current status will be displayed before exit (disable that behavior with option 'verbose-exit').");
@@
-361,7
+361,7
@@
static bool SIMIX_execute_timers()
try {
timer->callback();
} catch (...) {
try {
timer->callback();
} catch (...) {
- xbt_die("Exception thrown ou
f
of timer callback");
+ xbt_die("Exception thrown ou
t
of timer callback");
}
delete timer;
}
}
delete timer;
}