From: Arnaud Giersch Date: Fri, 8 Nov 2019 09:51:57 +0000 (+0100) Subject: Code smells spotted by static analyzers. X-Git-Tag: v3.25~441 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/c373e2ab31b848f5e355c17ed797bcf6a336361d Code smells spotted by static analyzers. --- diff --git a/teshsuite/smpi/gh-139/gh-139.c b/teshsuite/smpi/gh-139/gh-139.c index df3b5036c6..f1de933d94 100644 --- a/teshsuite/smpi/gh-139/gh-139.c +++ b/teshsuite/smpi/gh-139/gh-139.c @@ -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);