From e3df7690eaab7f4ac139addddb9aaccc92f988e2 Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Mon, 8 Oct 2012 09:10:24 +0200 Subject: [PATCH 1/1] 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. --- src/smpi/private.h | 1 - src/smpi/smpi_global.c | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) 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); -- 2.20.1