From: Martin Quinson Date: Sun, 16 Apr 2017 20:16:00 +0000 (+0200) Subject: make the mpich3 tests compile with the warnings on my machine X-Git-Tag: v3.16~345 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/06325ce167f484a178f1d3c6147a1ce9d7803ad3 make the mpich3 tests compile with the warnings on my machine --- diff --git a/teshsuite/smpi/mpich3-test/rma/linked_list_bench_lock_excl.c b/teshsuite/smpi/mpich3-test/rma/linked_list_bench_lock_excl.c index 607ca12c01..143e067f02 100644 --- a/teshsuite/smpi/mpich3-test/rma/linked_list_bench_lock_excl.c +++ b/teshsuite/smpi/mpich3-test/rma/linked_list_bench_lock_excl.c @@ -135,7 +135,7 @@ int main(int argc, char **argv) (void *) tail_ptr.disp); MPI_Win_lock(MPI_LOCK_EXCLUSIVE, tail_ptr.rank, 0, llist_win); -#if USE_ACC +#ifdef USE_ACC MPI_Accumulate(&new_elem_ptr, sizeof(llist_ptr_t), MPI_BYTE, tail_ptr.rank, (MPI_Aint) & (((llist_elem_t *) tail_ptr.disp)->next), sizeof(llist_ptr_t), MPI_BYTE, MPI_REPLACE, llist_win); @@ -155,7 +155,7 @@ int main(int argc, char **argv) llist_ptr_t next_tail_ptr; MPI_Win_lock(MPI_LOCK_EXCLUSIVE, tail_ptr.rank, 0, llist_win); -#if USE_ACC +#ifdef USE_ACC MPI_Get_accumulate(NULL, 0, MPI_DATATYPE_NULL, &next_tail_ptr, sizeof(llist_ptr_t), MPI_BYTE, tail_ptr.rank, (MPI_Aint) & (((llist_elem_t *) tail_ptr.disp)->next),