summaryrefslogtreecommitdiffstats
path: root/src/H5Fsuper.c
diff options
context:
space:
mode:
authorJames Laird <jlaird@hdfgroup.org>2007-01-24 16:15:27 (GMT)
committerJames Laird <jlaird@hdfgroup.org>2007-01-24 16:15:27 (GMT)
commit0ab3725051f24fede655d054e3ee0868dcfa7782 (patch)
tree1ecb2c9792955f41b668f91d6c445f384c3c3f6f /src/H5Fsuper.c
parent5a8f3945fe623fae8efe35bcaece8775fcc3537e (diff)
downloadhdf5-0ab3725051f24fede655d054e3ee0868dcfa7782.zip
hdf5-0ab3725051f24fede655d054e3ee0868dcfa7782.tar.gz
hdf5-0ab3725051f24fede655d054e3ee0868dcfa7782.tar.bz2
[svn-r13186] Cleaned up a few warnings by initializing variables and doing a few casts.
Tested on kagiso, smirom, copper.
Diffstat (limited to 'src/H5Fsuper.c')
-rw-r--r--src/H5Fsuper.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/H5Fsuper.c b/src/H5Fsuper.c
index 3ecdfb4..c8ff253 100644
--- a/src/H5Fsuper.c
+++ b/src/H5Fsuper.c
@@ -256,7 +256,7 @@ H5F_read_superblock(H5F_t *f, hid_t dxpl_id, H5G_loc_t *root_loc, haddr_t addr,
/* Compute super block checksum for versions greater than 1 */
if(super_vers >= HDF5_SUPERBLOCK_VERSION_2) {
- computed_chksum = H5_checksum_metadata(sbuf, (p - sbuf), 0);
+ computed_chksum = H5_checksum_metadata(sbuf, (unsigned) (p - sbuf), 0);
/* Read stored super block checksum */
UINT32DECODE(p, read_chksum);
@@ -264,7 +264,7 @@ H5F_read_superblock(H5F_t *f, hid_t dxpl_id, H5G_loc_t *root_loc, haddr_t addr,
HGOTO_ERROR(H5E_FILE, H5E_CANTOPENFILE, FAIL, "bad checksum on superblock")
}
- HDassert(p - sbuf == H5F_SUPERBLOCK_SIZE(super_vers, f));
+ HDassert((unsigned) (p - sbuf) == H5F_SUPERBLOCK_SIZE(super_vers, f));
/*
* Check if superblock address is different from base address and
@@ -360,7 +360,7 @@ H5F_read_superblock(H5F_t *f, hid_t dxpl_id, H5G_loc_t *root_loc, haddr_t addr,
HGOTO_ERROR(H5E_FILE, H5E_CANTOPENFILE, FAIL, "bad checksum on driver information block")
}
- HDassert(p - dbuf == driver_size + H5F_DRVINFOBLOCK_HDR_SIZE + H5F_DRVINFO_CHKSUM(drv_vers));
+ HDassert((unsigned) (p - dbuf) == driver_size + H5F_DRVINFOBLOCK_HDR_SIZE + H5F_DRVINFO_CHKSUM(drv_vers));
} /* end if */
/*