summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Joe Lee <hyoklee@hdfgroup.org>2021-11-05 13:06:54 (GMT)
committerGitHub <noreply@github.com>2021-11-05 13:06:54 (GMT)
commitb3f35a97a9e2f1f0592fa22c1fbbe950ff8efc22 (patch)
treef2529d778cecdd6afdd55dd8acc0f9d9b5736c18
parent57c6fbfdd77fb352657a53755aa3cc16c463c0b9 (diff)
downloadhdf5-b3f35a97a9e2f1f0592fa22c1fbbe950ff8efc22.zip
hdf5-b3f35a97a9e2f1f0592fa22c1fbbe950ff8efc22.tar.gz
hdf5-b3f35a97a9e2f1f0592fa22c1fbbe950ff8efc22.tar.bz2
OESS-168: Remove clang warnings. (#1136)
* OESS-168: Remove clang warnings. * OESS-168: Address @byrnHDF and @derobinson review.
-rw-r--r--test/swmr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/swmr.c b/test/swmr.c
index e6fdb47..bf84fcd 100644
--- a/test/swmr.c
+++ b/test/swmr.c
@@ -5220,7 +5220,7 @@ test_file_lock_swmr_concur(hid_t H5_ATTR_UNUSED in_fapl)
static int
test_file_lock_swmr_concur(hid_t in_fapl)
{
- hid_t fid; /* File ID */
+ hid_t fid = H5I_INVALID_HID; /* File ID */
hid_t fapl; /* File access property list */
char filename[NAME_BUF_SIZE]; /* file name */
pid_t childpid = 0; /* Child process ID */
@@ -6721,7 +6721,7 @@ test_refresh_concur(hid_t H5_ATTR_UNUSED in_fapl, hbool_t new_format)
static int
test_refresh_concur(hid_t in_fapl, hbool_t new_format)
{
- hid_t fid; /* File ID */
+ hid_t fid = H5I_INVALID_HID; /* File ID */
hid_t fapl; /* File access property list */
pid_t childpid = 0; /* Child process ID */
pid_t tmppid; /* Child process ID returned by waitpid */