summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2000-11-17 04:51:27 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2000-11-17 04:51:27 (GMT)
commit9dbe3e5c75389faaac20cee77817c62a738eeab2 (patch)
tree914b9e41c5df061c1d60f65228b89ff205c180f4 /tools
parentc385fd2a47104ac24613f18eab74dd2f6a357ca6 (diff)
downloadhdf5-9dbe3e5c75389faaac20cee77817c62a738eeab2.zip
hdf5-9dbe3e5c75389faaac20cee77817c62a738eeab2.tar.gz
hdf5-9dbe3e5c75389faaac20cee77817c62a738eeab2.tar.bz2
[svn-r2961] Purpose:
Code cleaning Description: Use the variable to rid the warnings of "variable set but not used". Platforms tested: Linux and modi4 -64. Just compile only.
Diffstat (limited to 'tools')
-rw-r--r--tools/h5dumptst.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/h5dumptst.c b/tools/h5dumptst.c
index 9cb9163..f1b3b50 100644
--- a/tools/h5dumptst.c
+++ b/tools/h5dumptst.c
@@ -1716,6 +1716,8 @@ void test_nestcomp(void)
* Wtite data to the dataset;
*/
status = H5Dwrite(dataset, s1_tid, H5S_ALL, H5S_ALL, H5P_DEFAULT, s1);
+ if (status < 0)
+ fprintf(stderr, "test_nestcomp H5Dwrite failed\n");
/*
* Release resources
@@ -1827,8 +1829,9 @@ void test_vldatatypes(void)
hid_t file, dset, space, type;
hsize_t dims[] = { SPACE1_DIM1 };
int i;
- herr_t ret;
+ herr_t ret=0;
+ ret = ret; /* so that compiler won't complain "is set but never used" */
file = H5Fcreate(FILE21, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
/* Allocate and initialize VL dataset to write */