summaryrefslogtreecommitdiffstats
path: root/test/vfd.c
diff options
context:
space:
mode:
authorjhendersonHDF <jhenderson@hdfgroup.org>2022-05-01 20:54:41 (GMT)
committerGitHub <noreply@github.com>2022-05-01 20:54:41 (GMT)
commit2ba7a01bfff451b043e2ec00811c0aad78921545 (patch)
tree31dc785e35a95578ea9fbb491fbc931e62234302 /test/vfd.c
parent5eba258d90aa89c3d1d58f1b5ef93c1cf9821c29 (diff)
downloadhdf5-2ba7a01bfff451b043e2ec00811c0aad78921545.zip
hdf5-2ba7a01bfff451b043e2ec00811c0aad78921545.tar.gz
hdf5-2ba7a01bfff451b043e2ec00811c0aad78921545.tar.bz2
Fix some const cast and stack/static object size warnings (#1700)
* Fix various warnings * Move HDfree_const to H5private.h for wider use * Print output from all ranks in parallel tests on allocation failure * Move const pointer freeing macro to h5test.h for now
Diffstat (limited to 'test/vfd.c')
-rw-r--r--test/vfd.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/test/vfd.c b/test/vfd.c
index b1b176a..b3bbf43 100644
--- a/test/vfd.c
+++ b/test/vfd.c
@@ -4112,7 +4112,7 @@ test_vector_io__setup_v(uint32_t count, H5FD_mem_t types[], haddr_t addrs[], siz
if (write_bufs[i]) {
- HDfree((void *)write_bufs[i]);
+ h5_free_const(write_bufs[i]);
write_bufs[i] = NULL;
}
@@ -4256,7 +4256,7 @@ test_vector_io__setup_fixed_size_v(uint32_t count, H5FD_mem_t types[], haddr_t a
if (write_bufs[i]) {
- HDfree((void *)write_bufs[i]);
+ h5_free_const(write_bufs[i]);
write_bufs[i] = NULL;
}
@@ -4922,13 +4922,13 @@ test_vector_io(const char *vfd_name)
for (i = 0; i < count; i++) {
- HDfree((void *)write_bufs_0[i]);
+ h5_free_const(write_bufs_0[i]);
write_bufs_0[i] = NULL;
- HDfree((void *)write_bufs_1[i]);
+ h5_free_const(write_bufs_1[i]);
write_bufs_1[i] = NULL;
- HDfree((void *)write_bufs_2[i]);
+ h5_free_const(write_bufs_2[i]);
write_bufs_2[i] = NULL;
HDfree(read_bufs_0[i]);
@@ -4940,13 +4940,13 @@ test_vector_io(const char *vfd_name)
HDfree(read_bufs_2[i]);
read_bufs_2[i] = NULL;
- HDfree((void *)f_write_bufs_0[i]);
+ h5_free_const(f_write_bufs_0[i]);
f_write_bufs_0[i] = NULL;
- HDfree((void *)f_write_bufs_1[i]);
+ h5_free_const(f_write_bufs_1[i]);
f_write_bufs_1[i] = NULL;
- HDfree((void *)f_write_bufs_2[i]);
+ h5_free_const(f_write_bufs_2[i]);
f_write_bufs_2[i] = NULL;
HDfree(f_read_bufs_0[i]);