diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2012-05-25 17:58:59 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2012-05-25 17:58:59 (GMT) |
commit | fe744bd8df1c0ce23c2631773a9463e781d84052 (patch) | |
tree | 3ce1e18ffc3555d0fe65118a56de19dd0d7fe774 /tools/h5dump/h5dump_ddl.c | |
parent | 2f7d953a9d328862297be8c33ecdaaeadd14ae14 (diff) | |
download | hdf5-fe744bd8df1c0ce23c2631773a9463e781d84052.zip hdf5-fe744bd8df1c0ce23c2631773a9463e781d84052.tar.gz hdf5-fe744bd8df1c0ce23c2631773a9463e781d84052.tar.bz2 |
[svn-r22412] reduce compiler warnings by removing unreferenced variables and adding cast
Tested: local linux
Diffstat (limited to 'tools/h5dump/h5dump_ddl.c')
-rw-r--r-- | tools/h5dump/h5dump_ddl.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tools/h5dump/h5dump_ddl.c b/tools/h5dump/h5dump_ddl.c index b0136c8..db78118 100644 --- a/tools/h5dump/h5dump_ddl.c +++ b/tools/h5dump/h5dump_ddl.c @@ -1467,15 +1467,18 @@ handle_datasets(hid_t fid, const char *dset, void *data, int pe, const char *dis if(sset) { unsigned int i; + unsigned int ndims; hid_t sid = H5Dget_space(dsetid); - int ndims = H5Sget_simple_extent_ndims(sid); + int ndims_res = H5Sget_simple_extent_ndims(sid); H5Sclose(sid); - if(ndims < 0) { + if(ndims_res < 0) { error_msg("H5Sget_simple_extent_ndims failed\n"); h5tools_setstatus(EXIT_FAILURE); return; } + else + ndims = ndims_res; if(!sset->start.data || !sset->stride.data || !sset->count.data || !sset->block.data) { /* they didn't specify a ``stride'' or ``block''. default to 1 in all |