Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Variable "duration" is never used. Remove it.
authorArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Thu, 6 Mar 2014 11:56:54 +0000 (12:56 +0100)
committerArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Thu, 6 Mar 2014 11:57:40 +0000 (12:57 +0100)
teshsuite/msg/task_destroy_cancel.c

index e0cfa53..c9b1702 100644 (file)
@@ -77,7 +77,7 @@ int slave(int argc, char *argv[])
   _XBT_GNUC_UNUSED int res;
   int id = -1;
   char mailbox[80];
-  double duration, start, end;
+  double start, end;
   sprintf(mailbox, "jupi");
 
   while (1) {
@@ -99,7 +99,6 @@ int slave(int argc, char *argv[])
       continue;
     }
 
-    duration = MSG_task_get_compute_duration(task);
     start = MSG_get_clock();
     MSG_task_execute(task);
     end = MSG_get_clock();