diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2002-06-19 16:08:27 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2002-06-19 16:08:27 (GMT) |
commit | 8bb096b6977a90df82ca3d32287aa2a7abeb5510 (patch) | |
tree | c63e215da154603f99afff0b9d9b31149a9c2e5c /src/H5D.c | |
parent | c0c4219b5084ebcbcfe56bb807ece294f2f4f4aa (diff) | |
download | hdf5-8bb096b6977a90df82ca3d32287aa2a7abeb5510.zip hdf5-8bb096b6977a90df82ca3d32287aa2a7abeb5510.tar.gz hdf5-8bb096b6977a90df82ca3d32287aa2a7abeb5510.tar.bz2 |
[svn-r5675] Purpose:
Code cleanup
Description:
Removed more compiler warnings, etc.
Platforms tested:
Linux 2.2.x (eirene) w/parallel
Diffstat (limited to 'src/H5D.c')
-rw-r--r-- | src/H5D.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1606,7 +1606,7 @@ H5D_read(H5D_t *dataset, const H5T_t *mem_type, const H5S_t *mem_space, hbool_t must_convert; /*have to xfer the slow way*/ #ifdef H5_HAVE_PARALLEL H5FD_mpio_dxpl_t *dx = NULL; - H5FD_mpio_xfer_t xfer_mode; /*xfer_mode for this request */ + H5FD_mpio_xfer_t xfer_mode=H5FD_MPIO_INDEPENDENT; /*xfer_mode for this request */ hbool_t xfer_mode_changed=0; /*xfer_mode needs restore */ hbool_t doing_mpio=0; /*This is an MPIO access */ #endif @@ -1654,7 +1654,7 @@ H5D_read(H5D_t *dataset, const H5T_t *mem_type, const H5S_t *mem_space, /* Collect Parallel I/O information for possible later use */ if (H5FD_MPIO==xfer_parms->driver_id){ doing_mpio++; - if (dx=xfer_parms->driver_info){ + if ((dx=xfer_parms->driver_info)!=NULL){ xfer_mode = dx->xfer_mode; }else HGOTO_ERROR (H5E_DATASET, H5E_CANTINIT, FAIL, @@ -2060,7 +2060,7 @@ H5D_write(H5D_t *dataset, const H5T_t *mem_type, const H5S_t *mem_space, hbool_t must_convert; /*have to xfer the slow way*/ #ifdef H5_HAVE_PARALLEL H5FD_mpio_dxpl_t *dx = NULL; - H5FD_mpio_xfer_t xfer_mode; /*xfer_mode for this request */ + H5FD_mpio_xfer_t xfer_mode=H5FD_MPIO_INDEPENDENT; /*xfer_mode for this request */ hbool_t xfer_mode_changed=0; /*xfer_mode needs restore */ hbool_t doing_mpio=0; /*This is an MPIO access */ #endif @@ -2137,7 +2137,7 @@ H5D_write(H5D_t *dataset, const H5T_t *mem_type, const H5S_t *mem_space, /* Collect Parallel I/O information for possible later use */ if (H5FD_MPIO==xfer_parms->driver_id){ doing_mpio++; - if (dx=xfer_parms->driver_info){ + if ((dx=xfer_parms->driver_info)!=NULL){ xfer_mode = dx->xfer_mode; }else HGOTO_ERROR (H5E_DATASET, H5E_CANTINIT, FAIL, |