Commit 6e8dae1b authored by Antonio J. Pena's avatar Antonio J. Pena
Browse files

Fix warning in opminloc.c and opmaxloc.c



Fixes the following warnings (with --enable-strict):

src/mpi/coll/opminloc.c: In function 'MPIR_MINLOC':
src/mpi/coll/opminloc.c:85:24: warning: variable 'flen' set but not used
[-Wunused-but-set-variable]

src/mpi/coll/opmaxloc.c: In function 'MPIR_MAXLOC':
src/mpi/coll/opmaxloc.c:86:24: warning: variable 'flen' set but not used
[-Wunused-but-set-variable]

See ticket #1966
Signed-off-by: default avatarWesley Bland <wbland@mcs.anl.gov>
parent 8822485c
......@@ -83,9 +83,13 @@ void MPIR_MAXLOC(
MPI_Datatype *type )
{
int mpi_errno = MPI_SUCCESS;
int i, len = *Len, flen;
int i, len = *Len;
flen = len * 2; /* used for Fortran types */
#ifdef HAVE_FORTRAN_BINDING
#ifndef HAVE_NO_FORTRAN_MPI_TYPES_IN_C
int flen = len * 2; /* used for Fortran types */
#endif
#endif
switch (*type) {
/* first the C types */
......
......@@ -82,9 +82,13 @@ void MPIR_MINLOC(
MPI_Datatype *type )
{
int mpi_errno = MPI_SUCCESS;
int i, len = *Len, flen;
int i, len = *Len;
flen = len * 2; /* used for Fortran types */
#ifdef HAVE_FORTRAN_BINDING
#ifndef HAVE_NO_FORTRAN_MPI_TYPES_IN_C
int flen = len * 2; /* used for Fortran types */
#endif
#endif
switch (*type) {
/* first the C types */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment