From 9dbe3e5c75389faaac20cee77817c62a738eeab2 Mon Sep 17 00:00:00 2001 From: Albert Cheng Date: Thu, 16 Nov 2000 23:51:27 -0500 Subject: [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. --- tools/h5dumptst.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 */ -- cgit v0.12