summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkmu <kmu@hdfgroup.org>2020-01-21 18:29:48 (GMT)
committerkmu <kmu@hdfgroup.org>2020-01-21 18:29:48 (GMT)
commit408b9b1f3b8e84ba090c51e665d38eedef32c7ee (patch)
treefb1b54f04db572aeb9a4a9fb56ceb73f9a52e411
parent7366709e4000a96a9942934da0d13474213567f3 (diff)
downloadhdf5-408b9b1f3b8e84ba090c51e665d38eedef32c7ee.zip
hdf5-408b9b1f3b8e84ba090c51e665d38eedef32c7ee.tar.gz
hdf5-408b9b1f3b8e84ba090c51e665d38eedef32c7ee.tar.bz2
fix uninitizlized warning
-rw-r--r--src/H5Fint.c4
-rw-r--r--testpar/t_cache.c6
-rw-r--r--tools/test/perform/perf.c2
3 files changed, 6 insertions, 6 deletions
diff --git a/src/H5Fint.c b/src/H5Fint.c
index 153ec2f..3a8dc3b 100644
--- a/src/H5Fint.c
+++ b/src/H5Fint.c
@@ -1509,8 +1509,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;