From: Martin Quinson Date: Mon, 9 Jan 2012 15:18:59 +0000 (+0100) Subject: make it compile with -Werror by forcing a type casting X-Git-Tag: exp_20120216~176 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/bfb1fc1be00a83251377e2652e9c60b9bcf8204a make it compile with -Werror by forcing a type casting --- diff --git a/src/smpi/smpi_base.c b/src/smpi/smpi_base.c index 91cb5993e4..1751f2570a 100644 --- a/src/smpi/smpi_base.c +++ b/src/smpi/smpi_base.c @@ -115,7 +115,7 @@ void smpi_mpi_start(MPI_Request request) SIMIX_req_comm_isend(mailbox, request->size, -1.0, request->buf, request->size, &match_send, - &smpi_mpi_request_free, // how to free the userdata if a detached send fails + (void (*)(void *))&smpi_mpi_request_free, // how to free the userdata if a detached send fails request, // detach if msg size < eager/rdv switch limit detached);