diff options
author | Sean McBride <sean@rogue-research.com> | 2021-02-19 17:25:44 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-19 17:25:44 (GMT) |
commit | 0a2a385accd2fc18c17bc3e36fd38f6a802e38df (patch) | |
tree | eaa89ebb07d35516fb188b84e7a329e9a3a85bab /src/H5PB.c | |
parent | a6f1b6ce5398102c579821f5f6589b00e552d6d0 (diff) | |
download | hdf5-0a2a385accd2fc18c17bc3e36fd38f6a802e38df.zip hdf5-0a2a385accd2fc18c17bc3e36fd38f6a802e38df.tar.gz hdf5-0a2a385accd2fc18c17bc3e36fd38f6a802e38df.tar.bz2 |
Fixed uninitialized warnings (#360)
* Fixed all -Wsometimes-uninitialized warnings by initializing variables
* Fixed all -Wconditional-uninitialized warnings by initializing variables
* Commit alignment changes from running bin/format_source with clang
version 10.0.1.
Co-authored-by: Larry Knox <lrknox@hdfgroup.org>
Diffstat (limited to 'src/H5PB.c')
-rw-r--r-- | src/H5PB.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -682,8 +682,8 @@ H5PB_read(H5F_shared_t *f_sh, H5FD_mem_t type, haddr_t addr, size_t size, void * haddr_t offset; haddr_t search_addr; /* Address of current page */ hsize_t num_touched_pages; /* Number of pages accessed */ - size_t access_size; - hbool_t bypass_pb = FALSE; /* Whether to bypass page buffering */ + size_t access_size = 0; + hbool_t bypass_pb = FALSE; /* Whether to bypass page buffering */ hsize_t i; /* Local index variable */ herr_t ret_value = SUCCEED; /* Return value */ @@ -983,8 +983,8 @@ H5PB_write(H5F_shared_t *f_sh, H5FD_mem_t type, haddr_t addr, size_t size, const haddr_t offset; haddr_t search_addr; /* Address of current page */ hsize_t num_touched_pages; /* Number of pages accessed */ - size_t access_size; - hbool_t bypass_pb = FALSE; /* Whether to bypass page buffering */ + size_t access_size = 0; + hbool_t bypass_pb = FALSE; /* Whether to bypass page buffering */ hsize_t i; /* Local index variable */ herr_t ret_value = SUCCEED; /* Return value */ |