Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Free dynamically allocated memory.
[simgrid.git] / teshsuite / smpi / mpich3-test / coll / allgatherv4.c
index d14e974..4c4cde6 100644 (file)
@@ -60,9 +60,9 @@ int main(int argc, char **argv)
         if (!rbuf)
             fprintf(stderr, "\trbuf of %d bytes\n", MAX_BUF);
         if (!recvcounts)
-            fprintf(stderr, "\trecvcounts of %zd bytes\n", comm_size * sizeof(int));
+          fprintf(stderr, "\trecvcounts of %zu bytes\n", comm_size * sizeof(int));
         if (!displs)
-            fprintf(stderr, "\tdispls of %zd bytes\n", comm_size * sizeof(int));
+          fprintf(stderr, "\tdispls of %zu bytes\n", comm_size * sizeof(int));
         fflush(stderr);
         MPI_Abort(MPI_COMM_WORLD, -1);
     }
@@ -108,7 +108,8 @@ int main(int argc, char **argv)
 void comm_tests(MPI_Comm comm)
 {
     int comm_size, comm_rank;
-    double rtime, max_time;
+    double rtime = rtime;       /* stop warning about unused variable */
+    double max_time;
     long long msg_size;
     MPI_Comm_size(comm, &comm_size);
     MPI_Comm_rank(comm, &comm_rank);