diff options
author | David Young <dyoung@hdfgroup.org> | 2020-04-20 21:15:48 (GMT) |
---|---|---|
committer | David Young <dyoung@hdfgroup.org> | 2020-04-20 21:15:48 (GMT) |
commit | f05358b4107e9c7857e644b5cd05b8d32aeed0f8 (patch) | |
tree | 6af4d5cd9d4f1ecb875eea63921ad53052f8bbef /test/vfd_swmr_sparse_reader.c | |
parent | 53cb28016d9adbb1d0c72599e80d600b6d1abb38 (diff) | |
download | hdf5-f05358b4107e9c7857e644b5cd05b8d32aeed0f8.zip hdf5-f05358b4107e9c7857e644b5cd05b8d32aeed0f8.tar.gz hdf5-f05358b4107e9c7857e644b5cd05b8d32aeed0f8.tar.bz2 |
Quiet some used-before-initialized warnings.
Diffstat (limited to 'test/vfd_swmr_sparse_reader.c')
-rw-r--r-- | test/vfd_swmr_sparse_reader.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/vfd_swmr_sparse_reader.c b/test/vfd_swmr_sparse_reader.c index fc62e4f..64f0d35 100644 --- a/test/vfd_swmr_sparse_reader.c +++ b/test/vfd_swmr_sparse_reader.c @@ -186,15 +186,15 @@ static int read_records(const char *filename, unsigned verbose, unsigned long nrecords, unsigned poll_time, unsigned reopen_count) { - hid_t fid; /* File ID */ - hid_t aid; /* Attribute ID */ + hid_t fid = H5I_INVALID_HID; + hid_t aid = H5I_INVALID_HID; time_t start_time; /* Starting time */ - hid_t mem_sid; /* Memory dataspace ID */ + hid_t mem_sid = H5I_INVALID_HID; symbol_t record; /* The record to add to the dataset */ unsigned seed; /* Seed for random number generator */ unsigned iter_to_reopen = reopen_count; /* # of iterations until reopen */ unsigned long u; /* Local index variable */ - hid_t fapl; + hid_t fapl = H5I_INVALID_HID; H5F_vfd_swmr_config_t *config = NULL; /* Configuration for VFD SWMR */ HDassert(filename); |