summaryrefslogtreecommitdiffstats
path: root/src/H5FDmpio.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2002-06-19 16:06:55 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2002-06-19 16:06:55 (GMT)
commitea052ffd55cabca3ef756a7f44e7f3f2fa32b679 (patch)
treeb7c28b9fa9d1552d5a0bcfbaba686d925d5470a5 /src/H5FDmpio.c
parent29a0f3e3586080a69f0048bf79dec5e9749fcb5d (diff)
downloadhdf5-ea052ffd55cabca3ef756a7f44e7f3f2fa32b679.zip
hdf5-ea052ffd55cabca3ef756a7f44e7f3f2fa32b679.tar.gz
hdf5-ea052ffd55cabca3ef756a7f44e7f3f2fa32b679.tar.bz2
[svn-r5674] Purpose:
Code cleanup Description: Removed more compiler warnings, etc. Platforms tested: Linux 2.2.x (eirene) w/parallel
Diffstat (limited to 'src/H5FDmpio.c')
-rw-r--r--src/H5FDmpio.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/H5FDmpio.c b/src/H5FDmpio.c
index 064341b..842c6e4 100644
--- a/src/H5FDmpio.c
+++ b/src/H5FDmpio.c
@@ -643,6 +643,9 @@ H5FD_mpio_wait_for_left_neighbor(H5FD_t *_file)
assert(file);
assert(H5FD_MPIO==file->pub.driver_id);
+ /* Portably initialize MPI status variable */
+ HDmemset(&rcvstat,0,sizeof(MPI_Status));
+
/* p0 has no left neighbor; all other procs wait for msg */
if (file->mpi_rank != 0) {
if (MPI_SUCCESS!= MPI_Recv( &msgbuf, 1, MPI_CHAR, file->mpi_rank-1, MPI_ANY_TAG, file->comm, &rcvstat ))
@@ -781,7 +784,7 @@ H5FD_mpio_fapl_get(H5FD_t *_file)
*/
static H5FD_t *
H5FD_mpio_open(const char *name, unsigned flags, hid_t fapl_id,
- haddr_t maxaddr/*unused*/)
+ haddr_t UNUSED maxaddr)
{
H5FD_mpio_t *file=NULL;
MPI_File fh;
@@ -987,18 +990,12 @@ H5FD_mpio_close(H5FD_t *_file)
*-------------------------------------------------------------------------
*/
static herr_t
-H5FD_mpio_query(const H5FD_t *_file, unsigned long *flags /* out */)
+H5FD_mpio_query(const H5FD_t UNUSED *_file, unsigned long *flags /* out */)
{
-#ifndef NDEBUG
- const H5FD_mpio_t *file = (const H5FD_mpio_t*)_file;
-#endif /* NDEBUG */
herr_t ret_value=SUCCEED;
FUNC_ENTER_NOAPI(H5FD_mpio_query, FAIL);
- assert(file);
- assert(H5FD_MPIO==file->pub.driver_id);
-
/* Set the VFL feature flags that this driver supports */
if(flags) {
*flags=0;