- INFO2("sleep_start_time : %f , sleep_test_time : %f",sleep_start_time,sleep_test_time);
-
- xbt_assert1(sscanf(argv[1],"%d", &id),
- "Invalid argument %s\n",argv[1]);
-
- MSG_process_sleep (sleep_start_time);
-
- sprintf(mailbox,"receiver-%d",id);
- while(1) {
- res_irecv = MSG_task_irecv(&(task), mailbox);
- INFO0("Wait to receive a task");
-
- if(sleep_test_time == 0)
- {
- res = MSG_comm_wait(res_irecv,-1);
- xbt_assert0(res == MSG_OK, "MSG_task_get failed");
- }
- else
- {
- while(MSG_comm_test(res_irecv) == 0){
- MSG_process_sleep (sleep_test_time);
- };
- MSG_comm_destroy(res_irecv);
+ XBT_INFO("sleep_start_time : %f , sleep_test_time : %f", sleep_start_time,
+ sleep_test_time);
+
+ _XBT_GNUC_UNUSED int read;
+ read = sscanf(argv[1], "%d", &id);
+ xbt_assert(read,
+ "Invalid argument %s\n", argv[1]);
+
+ MSG_process_sleep(sleep_start_time);
+
+ sprintf(mailbox, "receiver-%d", id);
+ while (1) {
+ res_irecv = MSG_task_irecv(&(task), mailbox);
+ XBT_INFO("Wait to receive a task");
+
+ if (sleep_test_time == 0) {
+ res = MSG_comm_wait(res_irecv, -1);
+ xbt_assert(res == MSG_OK, "MSG_task_get failed");
+ } else {
+ while (MSG_comm_test(res_irecv) == 0) {
+ MSG_process_sleep(sleep_test_time);
+ };
+ MSG_comm_destroy(res_irecv);