Procházet zdrojové kódy

nmad: fix warnings

Philippe SWARTVAGHER před 4 roky
rodič
revize
0decee273f

+ 4 - 4
mpi/src/nmad/starpu_mpi_nmad.c

@@ -429,7 +429,7 @@ void _starpu_mpi_handle_request_termination(struct _starpu_mpi_req* req)
 	_STARPU_MPI_LOG_OUT();
 }
 
-void _starpu_mpi_handle_request_termination_callback(nm_sr_event_t event, const nm_sr_event_info_t* event_info, void* ref)
+void _starpu_mpi_handle_request_termination_callback(nm_sr_event_t event STARPU_ATTRIBUTE_UNUSED, const nm_sr_event_info_t* event_info STARPU_ATTRIBUTE_UNUSED, void* ref)
 {
 	_starpu_mpi_handle_request_termination(ref);
 }
@@ -447,7 +447,7 @@ void _starpu_mpi_coop_sends_build_tree(struct _starpu_mpi_coop_sends *coop_sends
 }
 #endif
 
-void _starpu_mpi_submit_coop_sends(struct _starpu_mpi_coop_sends *coop_sends, int submit_control, int submit_data)
+void _starpu_mpi_submit_coop_sends(struct _starpu_mpi_coop_sends *coop_sends, int submit_control STARPU_ATTRIBUTE_UNUSED, int submit_data)
 {
 	unsigned i, n = coop_sends->n;
 
@@ -717,12 +717,12 @@ int _starpu_mpi_progress_init(struct _starpu_mpi_argc_argv *argc_argv)
 
 	if(polling_point_prog)
 	{
-		starpu_progression_hook_register((unsigned (*)(void *))&piom_ltask_schedule, (void *)&polling_point_prog);
+		starpu_progression_hook_register((void *)&piom_ltask_schedule, (void *)&polling_point_prog);
 	}
 
 	if(polling_point_idle)
 	{
-		starpu_idle_hook_register((unsigned (*)(void *))&piom_ltask_schedule, (void *)&polling_point_idle);
+		starpu_idle_hook_register((void *)&piom_ltask_schedule, (void *)&polling_point_idle);
 	}
 
 	/* Launch thread used for nmad callbacks */

+ 1 - 1
mpi/src/nmad/starpu_mpi_nmad_backend.c

@@ -55,7 +55,7 @@ void _starpu_mpi_nmad_backend_request_init(struct _starpu_mpi_req *req)
 	req->backend->data_request = NM_SR_REQUEST_NULL;
 }
 
-void _starpu_mpi_nmad_backend_request_fill(struct _starpu_mpi_req *req, MPI_Comm comm, int is_internal_req)
+void _starpu_mpi_nmad_backend_request_fill(struct _starpu_mpi_req *req, MPI_Comm comm, int is_internal_req STARPU_ATTRIBUTE_UNUSED)
 {
 	/* this function gives session and gate: */
 	nm_mpi_nmad_dest(&req->backend->session, &req->backend->gate, comm, req->node_tag.node.rank);

+ 1 - 1
mpi/src/nmad/starpu_mpi_nmad_unknown_datatype.c

@@ -88,7 +88,7 @@ void _starpu_mpi_isend_unknown_datatype(struct _starpu_mpi_req *req)
  * Receive
  **********************************************/
 
-static void _starpu_mpi_unknown_datatype_recv_callback(nm_sr_event_t event, const nm_sr_event_info_t* p_info, void* ref)
+static void _starpu_mpi_unknown_datatype_recv_callback(nm_sr_event_t event, const nm_sr_event_info_t* p_info STARPU_ATTRIBUTE_UNUSED, void* ref)
 {
 	STARPU_ASSERT_MSG(!((event & NM_SR_EVENT_FINALIZED) && (event & NM_SR_EVENT_RECV_DATA)), "Both events can't be triggered at the same time !");