From: Arnaud Giersch Date: Mon, 8 Oct 2012 07:10:24 +0000 (+0200) Subject: Declare the function as static, and make the compiler happy. X-Git-Tag: v3_8~107 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/e3df7690eaab7f4ac139addddb9aaccc92f988e2 Declare the function as static, and make the compiler happy. Also revert "add a declaration to remove a warning" There's no need to make this function public. This reverts commit ce0d4e3a7a5045051980d849700960a78ec78cfb. --- diff --git a/src/smpi/private.h b/src/smpi/private.h index 7769ef4f8d..1979e5a291 100644 --- a/src/smpi/private.h +++ b/src/smpi/private.h @@ -86,7 +86,6 @@ void smpi_process_simulated_start(void); double smpi_process_simulated_elapsed(void); void print_request(const char *message, MPI_Request request); -void SMPI_comm_copy_buffer_callback(smx_action_t comm, void* buff, size_t buff_size); void smpi_global_init(void); void smpi_global_destroy(void); diff --git a/src/smpi/smpi_global.c b/src/smpi/smpi_global.c index a4278264ff..189c8ea087 100644 --- a/src/smpi/smpi_global.c +++ b/src/smpi/smpi_global.c @@ -213,7 +213,7 @@ void print_request(const char *message, MPI_Request request) { request->src, request->dst, request->tag, request->flags); } -void SMPI_comm_copy_buffer_callback(smx_action_t comm, void* buff, size_t buff_size) +static void SMPI_comm_copy_buffer_callback(smx_action_t comm, void* buff, size_t buff_size) { XBT_DEBUG("Copy the data over"); memcpy(comm->comm.dst_buff, buff, buff_size);