summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorH. Joe Lee <hyoklee@hdfgroup.org>2021-12-08 22:00:19 (GMT)
committerGitHub <noreply@github.com>2021-12-08 22:00:19 (GMT)
commite36aa06950c701f66fa19b42dab9e04514a11297 (patch)
tree924d6f2fa417d418e3e97104dca5dfa9023b0434 /test
parent83cf2cb15b15bf7543d9fa750ec1aeb8de8ea3b5 (diff)
downloadhdf5-e36aa06950c701f66fa19b42dab9e04514a11297.zip
hdf5-e36aa06950c701f66fa19b42dab9e04514a11297.tar.gz
hdf5-e36aa06950c701f66fa19b42dab9e04514a11297.tar.bz2
OESS-168: Remove clang warnings. (#1269)
Diffstat (limited to 'test')
-rw-r--r--test/dsets.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/test/dsets.c b/test/dsets.c
index 690d13f..88e3ce0 100644
--- a/test/dsets.c
+++ b/test/dsets.c
@@ -835,7 +835,11 @@ error:
static herr_t
test_compact_io(hid_t fapl)
{
- hid_t file, dataset, space, plist;
+ hid_t file = H5I_INVALID_HID;
+ hid_t dataset = H5I_INVALID_HID;
+ hid_t space = H5I_INVALID_HID;
+ hid_t plist = H5I_INVALID_HID;
+
hid_t verfile = -1, new_fapl = -1;
hsize_t dims[2];
int wbuf[16][8], rbuf[16][8];
@@ -7587,9 +7591,9 @@ test_missing_chunk(hid_t file)
hsize_t csize2[2] = {5, 5};
size_t u, i, j; /* Local Index variable */
- hid_t fapl; /* File access property list */
- H5F_libver_t low; /* File format low bound */
- H5D_chunk_index_t idx_type, idx_type2; /* Dataset chunk index types */
+ hid_t fapl = H5I_INVALID_HID; /* File access property list */
+ H5F_libver_t low; /* File format low bound */
+ H5D_chunk_index_t idx_type, idx_type2; /* Dataset chunk index types */
TESTING("Read dataset with unwritten chunk & undefined fill value");
@@ -10722,8 +10726,8 @@ test_fixed_array(hid_t fapl)
const hsize_t dim2_big[2] = {500, 60}; /* Big dataset dimensions */
hsize_t dim2_max[2] = {120, 50}; /* Maximum dataset dimensions */
- hid_t mem_id; /* Memory space ID */
- hid_t big_mem_id; /* Memory space ID for big dataset */
+ hid_t mem_id = H5I_INVALID_HID; /* Memory space ID */
+ hid_t big_mem_id; /* Memory space ID for big dataset */
hsize_t msize[1] = {POINTS}; /* Size of memory space */
hsize_t msize_big[1] = {POINTS_BIG}; /* Size of memory space for big dataset */