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
Avoid a local variable only used by xbt_assert.
[simgrid.git]
/
teshsuite
/
msg
/
task_destroy_cancel
/
task_destroy_cancel.c
diff --git
a/teshsuite/msg/task_destroy_cancel/task_destroy_cancel.c
b/teshsuite/msg/task_destroy_cancel/task_destroy_cancel.c
index
eebcf6d
..
2a10ed9
100644
(file)
--- a/
teshsuite/msg/task_destroy_cancel/task_destroy_cancel.c
+++ b/
teshsuite/msg/task_destroy_cancel/task_destroy_cancel.c
@@
-66,8
+66,7
@@
static int worker(XBT_ATTRIB_UNUSED int argc, XBT_ATTRIB_UNUSED char* argv[])
{
while (1) {
msg_task_t task = NULL;
{
while (1) {
msg_task_t task = NULL;
- XBT_ATTRIB_UNUSED int res = MSG_task_receive(&(task), "worker_mailbox");
- xbt_assert(res == MSG_OK, "MSG_task_get failed");
+ xbt_assert(MSG_task_receive(&(task), "worker_mailbox") == MSG_OK, "MSG_task_receive failed");
XBT_INFO("Handling task \"%s\"", MSG_task_get_name(task));
if (!strcmp(MSG_task_get_name(task), "finalize")) {
XBT_INFO("Handling task \"%s\"", MSG_task_get_name(task));
if (!strcmp(MSG_task_get_name(task), "finalize")) {