From 5eaedb61ab744615914e2b8366923a371f9ae976 Mon Sep 17 00:00:00 2001 From: Augustin Degomme Date: Fri, 8 Aug 2014 00:54:20 +0200 Subject: [PATCH] silence (stupid) warnings from clang didn't know hat having too many parenthesis around a test could trigger a warning ... --- src/smpi/colls/bcast-mvapich-smp.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/smpi/colls/bcast-mvapich-smp.c b/src/smpi/colls/bcast-mvapich-smp.c index d40f2db9e1..8fb512c95a 100644 --- a/src/smpi/colls/bcast-mvapich-smp.c +++ b/src/smpi/colls/bcast-mvapich-smp.c @@ -294,9 +294,9 @@ int smpi_coll_tuned_bcast_mvapich2_intra_node(void *buffer, * heterogeneous systems. We want to use MPI_Type_size() wherever * possible, and MPI_Pack_size() in other places. */ - if (is_homogeneous) { + //if (is_homogeneous) { type_size=smpi_datatype_size(datatype); - } /*else {*/ + //} /*else {*/ /* MPIR_Pack_size_impl(1, datatype, &type_size);*/ /* }*/ nbytes = (size_t) (count) * (type_size); @@ -308,11 +308,11 @@ int smpi_coll_tuned_bcast_mvapich2_intra_node(void *buffer, } } - if ((two_level_bcast == 1 + if (two_level_bcast == 1 #if defined(_MCST_SUPPORT_) || comm_ptr->ch.is_mcast_ok #endif - )) { + ) { if (!is_contig || !is_homogeneous) { tmp_buf=(void *)xbt_malloc(nbytes); -- 2.20.1