summaryrefslogtreecommitdiffstats
path: root/tools/src/h5stat/h5stat.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@koziol.gov>2019-06-21 15:05:34 (GMT)
committerQuincey Koziol <koziol@koziol.gov>2019-06-21 15:05:34 (GMT)
commit1ccbdfee589d9f56d71983506313879fa47c4e90 (patch)
treec1d64e0d77828bcf81dd0e4e4b4e9fda41911582 /tools/src/h5stat/h5stat.c
parent5fc5d947f084d1ef5d4c4a0bc2be55baa181f0fa (diff)
downloadhdf5-1ccbdfee589d9f56d71983506313879fa47c4e90.zip
hdf5-1ccbdfee589d9f56d71983506313879fa47c4e90.tar.gz
hdf5-1ccbdfee589d9f56d71983506313879fa47c4e90.tar.bz2
Add support for GCC 7.x warnings, update warnhist script to account for them,
clean up warnings.
Diffstat (limited to 'tools/src/h5stat/h5stat.c')
-rw-r--r--tools/src/h5stat/h5stat.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/src/h5stat/h5stat.c b/tools/src/h5stat/h5stat.c
index 8109b93..450f731 100644
--- a/tools/src/h5stat/h5stat.c
+++ b/tools/src/h5stat/h5stat.c
@@ -509,8 +509,7 @@ dataset_stats(iter_t *iter, const char *name, const H5O_info_t *oi)
HGOTO_ERROR(FAIL, H5E_tools_min_id_g, "attribute_stats() failed");
/* Get storage info */
- if((storage = H5Dget_storage_size(did)) < 0)
- HGOTO_ERROR(FAIL, H5E_tools_min_id_g, "H5Dget_storage_size() failed");
+ storage = H5Dget_storage_size(did);
/* Gather layout statistics */
if((dcpl = H5Dget_create_plist(did)) < 0)