summaryrefslogtreecommitdiffstats
path: root/tools/test
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2020-07-30 19:53:08 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2020-07-30 19:53:08 (GMT)
commit0731cf7e0e5134c2da969ce07ff00578c7dd4648 (patch)
treecd7cb25c76d5bc2d6adec0a119c3eea59fedff7c /tools/test
parent617d269ceb3dda4f504ac48e3dd618d31b4b3fd8 (diff)
downloadhdf5-0731cf7e0e5134c2da969ce07ff00578c7dd4648.zip
hdf5-0731cf7e0e5134c2da969ce07ff00578c7dd4648.tar.gz
hdf5-0731cf7e0e5134c2da969ce07ff00578c7dd4648.tar.bz2
More warnings reduction
Diffstat (limited to 'tools/test')
-rw-r--r--tools/test/h5diff/h5diffgentest.c1
-rw-r--r--tools/test/h5dump/h5dumpgentest.c1
-rw-r--r--tools/test/h5jam/tellub.c6
3 files changed, 4 insertions, 4 deletions
diff --git a/tools/test/h5diff/h5diffgentest.c b/tools/test/h5diff/h5diffgentest.c
index 935194c..7b407fd 100644
--- a/tools/test/h5diff/h5diffgentest.c
+++ b/tools/test/h5diff/h5diffgentest.c
@@ -8035,7 +8035,6 @@ void test_double_epsilon(const char *fname1, const char *fname2)
{
hid_t fid1 = H5I_INVALID_HID, fid2 = H5I_INVALID_HID;
hsize_t dims1[2] = { 4, 7 };
- hsize_t dims2[2] = { 4, 7 };
double wdata[4][7];
int i, j;
diff --git a/tools/test/h5dump/h5dumpgentest.c b/tools/test/h5dump/h5dumpgentest.c
index bce3493..411763b 100644
--- a/tools/test/h5dump/h5dumpgentest.c
+++ b/tools/test/h5dump/h5dumpgentest.c
@@ -3629,7 +3629,6 @@ gent_group_comments(void)
{
hid_t fid = H5I_INVALID_HID;
hid_t group = H5I_INVALID_HID;
- hbool_t supports_comments = FALSE;
fid = H5Fcreate(FILE33, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
diff --git a/tools/test/h5jam/tellub.c b/tools/test/h5jam/tellub.c
index 1cdd289..dbd2e69 100644
--- a/tools/test/h5jam/tellub.c
+++ b/tools/test/h5jam/tellub.c
@@ -71,6 +71,7 @@ parse_command_line (int argc, const char *argv[])
case 'h':
usage (h5tools_getprogname());
h5tools_setstatus(EXIT_SUCCESS);
+ break;
case '?':
default:
usage (h5tools_getprogname());
@@ -105,7 +106,7 @@ int
main (int argc, const char *argv[])
{
char *ifname;
- hid_t ifile;
+ hid_t ifile = H5I_INVALID_HID;
hsize_t usize;
htri_t testval;
herr_t status;
@@ -165,7 +166,8 @@ main (int argc, const char *argv[])
done:
H5Pclose (plist);
- H5Fclose (ifile);
+ if(ifile >= 0)
+ H5Fclose (ifile);
leave(h5tools_getstatus());
} /* end main() */