Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Remove warnings in vm
authorAugustin Degomme <augustin.degomme@imag.fr>
Fri, 28 Nov 2014 09:29:01 +0000 (10:29 +0100)
committerAugustin Degomme <augustin.degomme@imag.fr>
Fri, 28 Nov 2014 09:29:01 +0000 (10:29 +0100)
src/msg/msg_vm.c

index 7909bb5..cf88b63 100644 (file)
@@ -723,7 +723,7 @@ static int migration_tx_fun(int argc, char *argv[])
   double mig_timeout = MIGRATION_TIMEOUT_DO_NOT_HARDCODE_ME;
 
   double remaining_size = ramsize + devsize;
-  double threshold;
+  double threshold = 0.0;
 
   /* check parameters */
   if (ramsize == 0)
@@ -810,7 +810,7 @@ static int migration_tx_fun(int argc, char *argv[])
       break;
 
 
-    sg_size_t sent;
+    sg_size_t sent = 0;
     double clock_prev_send = MSG_get_clock();
     TRY {
       sent = send_migration_data(ms->vm, ms->src_pm, ms->dst_pm, updated_size, ms->mbox, 2, stage2_round, mig_speed, mig_timeout);