Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add -Wextra to CFLAGS too.
[simgrid.git] / teshsuite / smpi / mpich3-test / coll / coll10.c
index d2a3981..95da8d9 100644 (file)
@@ -9,8 +9,6 @@
 
 #define BAD_ANSWER 100000
 
-int assoc(int *, int *, int *, MPI_Datatype *);
-
 /*
     The operation is inoutvec[i] = invec[i] op inoutvec[i]
     (see 4.9.4).  The order is important.
@@ -18,7 +16,7 @@ int assoc(int *, int *, int *, MPI_Datatype *);
     Note that the computation is in process rank (in the communicator)
     order, independent of the root.
  */
-int assoc(int *invec, int *inoutvec, int *len, MPI_Datatype * dtype)
+static void assoc(int *invec, int *inoutvec, int *len, MPI_Datatype *dtype)
 {
     int i;
     for (i = 0; i < *len; i++) {
@@ -31,7 +29,6 @@ int assoc(int *invec, int *inoutvec, int *len, MPI_Datatype * dtype)
         else
             inoutvec[i] = invec[i];
     }
-    return (1);
 }
 
 int main(int argc, char **argv)