diff options
author | Larry Knox <lrknox@hdfgroup.org> | 2015-12-15 20:52:12 (GMT) |
---|---|---|
committer | Larry Knox <lrknox@hdfgroup.org> | 2015-12-15 20:52:12 (GMT) |
commit | b3426914a877877b43c90b6804130076ee1b3c2c (patch) | |
tree | 0af85202de5e05de17c7d7156327e03d579e4b05 | |
parent | 410d8365d0650b3bc9113fbc9176978f83291fbe (diff) | |
download | hdf5-b3426914a877877b43c90b6804130076ee1b3c2c.zip hdf5-b3426914a877877b43c90b6804130076ee1b3c2c.tar.gz hdf5-b3426914a877877b43c90b6804130076ee1b3c2c.tar.bz2 |
[svn-r28669] Changes to correct errors found with -ansi flag.
h5tools_dump.c
Removed 3 lines commented out with //.
h5_vds-percival-unlim.c
Changed C++-style comment to C-style comment.
Tested with h5committest.new.
-rw-r--r-- | examples/h5_vds-percival-unlim.c | 5 | ||||
-rw-r--r-- | tools/lib/h5tools_dump.c | 3 |
2 files changed, 3 insertions, 5 deletions
diff --git a/examples/h5_vds-percival-unlim.c b/examples/h5_vds-percival-unlim.c index b5f3ebd..2496c37 100644 --- a/examples/h5_vds-percival-unlim.c +++ b/examples/h5_vds-percival-unlim.c @@ -288,8 +288,9 @@ main (void) /* Read all VDS data */ - //EIP We should be able to do it by using H5S_ALL instead of making selection - // or using H5Sselect_all from vspace. + /* EIP We should be able to do it by using H5S_ALL instead of making selection + * or using H5Sselect_all from vspace. + */ start[0] = 0; start[1] = 0; start[2] = 0; diff --git a/tools/lib/h5tools_dump.c b/tools/lib/h5tools_dump.c index 0d39981..1876e4f 100644 --- a/tools/lib/h5tools_dump.c +++ b/tools/lib/h5tools_dump.c @@ -1539,7 +1539,6 @@ h5tools_dump_simple_dset(FILE *stream, const h5tool_format_t *info, h5tools_cont /* Hyperslab info */ hsize_t hs_offset[H5S_MAX_RANK]; /* starting offset */ hsize_t hs_size[H5S_MAX_RANK]; /* size this pass */ - //hsize_t hs_count[H5S_MAX_RANK]; /* size this pass */ hsize_t hs_nelmts; /* elements in request */ /* VL data special information */ @@ -1622,11 +1621,9 @@ h5tools_dump_simple_dset(FILE *stream, const h5tool_format_t *info, h5tools_cont hs_size[i] = MIN(total_size[i] - hs_offset[i], sm_size[i]); ctx->p_max_idx[i] = ctx->p_min_idx[i] + hs_size[i]; hs_nelmts *= hs_size[i]; -// hs_count[i] = 1; } H5Sselect_hyperslab(f_space, H5S_SELECT_SET, hs_offset, NULL, hs_size, NULL); -// H5Sselect_hyperslab(f_space, H5S_SELECT_SET, hs_offset, NULL, hs_count, hs_size); H5Sselect_hyperslab(sm_space, H5S_SELECT_SET, zero, NULL, &hs_nelmts, NULL); } else { |