From 33231edf2cf2a3615965d676f3d5c7f37a951569 Mon Sep 17 00:00:00 2001 From: degomme Date: Tue, 14 Feb 2017 12:35:56 +0100 Subject: [PATCH 1/1] Please sonar. Is this really what we want ? --- src/smpi/smpi_mpi_dt.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/smpi/smpi_mpi_dt.cpp b/src/smpi/smpi_mpi_dt.cpp index 9bd0d52ea5..8c63b07790 100644 --- a/src/smpi/smpi_mpi_dt.cpp +++ b/src/smpi/smpi_mpi_dt.cpp @@ -1403,7 +1403,8 @@ void smpi_op_apply(MPI_Op op, void *invec, void *inoutvec, int *len, MPI_Datatyp op->func(invec, inoutvec, len, datatype); else{ int tmp = smpi_type_c2f(*datatype); - op->func(invec, inoutvec, len, reinterpret_cast(&tmp) ); + void* tmpptr=static_cast(&tmp); + op->func(invec, inoutvec, len, static_cast(tmpptr) ); } } } -- 2.20.1