Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Check return value of MSG_task_isend_internal (codacy).
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Mon, 9 Apr 2018 12:27:23 +0000 (14:27 +0200)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Mon, 9 Apr 2018 13:34:47 +0000 (15:34 +0200)
src/msg/msg_gos.cpp

index bc4f17d..970a0fc 100644 (file)
@@ -389,7 +389,8 @@ msg_comm_t MSG_task_isend_bounded(msg_task_t task, const char *alias, double max
  */
 void MSG_task_dsend(msg_task_t task, const char *alias, void_f_pvoid_t cleanup)
 {
-  MSG_task_isend_internal(task, alias, cleanup, 1);
+  msg_comm_t XBT_ATTRIB_UNUSED comm = MSG_task_isend_internal(task, alias, cleanup, 1);
+  xbt_assert(comm == nullptr);
 }
 
 /** \ingroup msg_task_usage