diff options
author | kmu <kmu@hdfgroup.org> | 2020-01-21 18:29:48 (GMT) |
---|---|---|
committer | David Young <dyoung@hdfgroup.org> | 2020-05-20 14:31:50 (GMT) |
commit | 0c9d2de9e29c5b0d0b0fb1ec07e1d2ae8e2c8f7d (patch) | |
tree | 28727dfdd4288e5da790f0753e2a9ff25ef0e2ea | |
parent | f77d99d3e9b9434ef895f9ad2ee072ce76e2768a (diff) | |
download | hdf5-0c9d2de9e29c5b0d0b0fb1ec07e1d2ae8e2c8f7d.zip hdf5-0c9d2de9e29c5b0d0b0fb1ec07e1d2ae8e2c8f7d.tar.gz hdf5-0c9d2de9e29c5b0d0b0fb1ec07e1d2ae8e2c8f7d.tar.bz2 |
fix uninitizlized warning
-rw-r--r-- | src/H5Fint.c | 4 | ||||
-rw-r--r-- | testpar/t_cache.c | 6 | ||||
-rw-r--r-- | tools/test/perform/perf.c | 2 |
3 files changed, 6 insertions, 6 deletions
diff --git a/src/H5Fint.c b/src/H5Fint.c index 0b4f731..d5ad402 100644 --- a/src/H5Fint.c +++ b/src/H5Fint.c @@ -1562,8 +1562,8 @@ H5F_open(const char *name, unsigned flags, hid_t fcpl_id, hid_t fapl_id) H5P_genplist_t *a_plist; /*file access property list */ H5F_close_degree_t fc_degree; /*file close degree */ size_t page_buf_size; - unsigned page_buf_min_meta_perc; - unsigned page_buf_min_raw_perc; + unsigned page_buf_min_meta_perc = 0; + unsigned page_buf_min_raw_perc = 0; hbool_t set_flag = FALSE; /*set the status_flags in the superblock */ hbool_t clear = FALSE; /*clear the status_flags */ hbool_t evict_on_close; /* evict on close value from plist */ diff --git a/testpar/t_cache.c b/testpar/t_cache.c index cde19fe..ebb8e33 100644 --- a/testpar/t_cache.c +++ b/testpar/t_cache.c @@ -1761,7 +1761,7 @@ serve_write_request(struct mssg_t * mssg_ptr) hbool_t report_mssg = FALSE; hbool_t success = TRUE; int target_index; - int new_ver_num; + int new_ver_num = 0; haddr_t target_addr; #if DO_WRITE_REQ_ACK struct mssg_t reply; @@ -4612,7 +4612,7 @@ verify_entry_reads(haddr_t addr, int expected_entry_reads) { hbool_t success = TRUE; - int reported_entry_reads; + int reported_entry_reads = 0; struct mssg_t mssg; if ( success ) { @@ -4719,7 +4719,7 @@ verify_entry_writes(haddr_t addr, int expected_entry_writes) { hbool_t success = TRUE; - int reported_entry_writes; + int reported_entry_writes = 0; struct mssg_t mssg; if ( success ) { diff --git a/tools/test/perform/perf.c b/tools/test/perform/perf.c index 34b8a2d..2008a6e 100644 --- a/tools/test/perform/perf.c +++ b/tools/test/perform/perf.c @@ -117,7 +117,7 @@ extern char *optarg; int main(int argc, char **argv) { - char *buf, *tmp, *buf2, *tmp2, *check; + char *buf, *tmp, *buf2 = NULL, *tmp2 = NULL, *check; int i, j, mynod=0, nprocs=1, err, my_correct = 1, correct, myerrno; double stim, etim; double write_tim = 0; |