From: Martin Quinson Date: Tue, 28 Nov 2017 00:27:42 +0000 (+0100) Subject: sonar: don't throw a copy of catched exceptions X-Git-Tag: v3.18~216 X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/922cd9a8337d82a2ad64e24047f7085326ad3342 sonar: don't throw a copy of catched exceptions --- diff --git a/src/xbt/xbt_os_synchro.cpp b/src/xbt/xbt_os_synchro.cpp index 8973885bfb..eb1aecc4bc 100644 --- a/src/xbt/xbt_os_synchro.cpp +++ b/src/xbt/xbt_os_synchro.cpp @@ -58,7 +58,7 @@ int xbt_cond_timedwait(xbt_cond_t cond, xbt_mutex_t mutex, double delay) if (e.category == timeout_error) { return 1; } else { - throw e; // unknown exception + throw; // rethrow the exceptions that I don't know } } return 0;