Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge branch 'master' of https://framagit.org/simgrid/simgrid
[simgrid.git] / teshsuite / smpi / gh-139 / gh-139.c
index df3b5036c6a2865cf3148f8e53bea647bac098e7..f1de933d943cca3d74d2838c9f604873411bf4a5 100644 (file)
@@ -27,7 +27,7 @@ void* req_wait(void* bar);
 
 // Thread creation helper
 
-static int thread_create_wrapper(int argc, char* argv[])
+static int thread_create_wrapper(XBT_ATTRIB_UNUSED int argc, XBT_ATTRIB_UNUSED char* argv[])
 {
   int the_global_rank  = global_rank;
   struct threadwrap* t = (struct threadwrap*)sg_actor_self_data();
@@ -80,8 +80,9 @@ void* req_wait(void* bar)
 
 int main(int argc, char* argv[])
 {
-  int rank, size;
-  char c;
+  int rank;
+  int size;
+  char c = 0;
   MPI_Request req;
   MPI_Init(&argc, &argv);
   MPI_Comm_rank(MPI_COMM_WORLD, &rank);