[mpich-commits] [mpich] MPICH primary repository branch, master, updated. v3.1.2-17-g1d3684e
Service Account
noreply at mpich.org
Wed Jul 30 12:42:19 CDT 2014
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "MPICH primary repository".
The branch, master has been updated
via 1d3684ecd94a429fd1fd25659e5557fe9f2ecdc0 (commit)
from 3e5395d452339bdb009f4c5b505c02bde0c9ee6d (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://git.mpich.org/mpich.git/commitdiff/1d3684ecd94a429fd1fd25659e5557fe9f2ecdc0
commit 1d3684ecd94a429fd1fd25659e5557fe9f2ecdc0
Author: Junchao Zhang <jczhang at mcs.anl.gov>
Date: Tue Jul 29 15:00:50 2014 -0500
Fixed compile warnings in MPI_File_f2c with --disable-romio
MPI_File_f2c() is expected to return a value of type MPI_File. However,
the old code returns MPI_File*. We do a type casting here. Whether the
returned value is correct is not important since romio is disabled and we
just want to make the compiler happy.
Fixes #2140
Signed-off-by: Antonio J. Pena <apenya at mcs.anl.gov>
diff --git a/src/binding/fortran/mpif_h/mpi_fortimpl.h b/src/binding/fortran/mpif_h/mpi_fortimpl.h
index 0adfa11..a28f84c 100644
--- a/src/binding/fortran/mpif_h/mpi_fortimpl.h
+++ b/src/binding/fortran/mpif_h/mpi_fortimpl.h
@@ -264,6 +264,6 @@ typedef char *MPID_FCHAR_T;
/* A special case to help out when ROMIO is disabled */
#ifndef MPI_MODE_RDONLY
#ifndef MPI_File_f2c
-#define MPI_File_f2c(a) ((MPI_File*)(a))
+#define MPI_File_f2c(a) ((MPI_File)(MPI_Aint)(a))
#endif
#endif /* MPI_MODE_RDONLY */
-----------------------------------------------------------------------
Summary of changes:
src/binding/fortran/mpif_h/mpi_fortimpl.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
hooks/post-receive
--
MPICH primary repository
More information about the commits
mailing list