summaryrefslogtreecommitdiffstats
path: root/test/swmr.c
diff options
context:
space:
mode:
authorH. Joe Lee <hyoklee@hdfgroup.org>2021-11-15 23:09:45 (GMT)
committerGitHub <noreply@github.com>2021-11-15 23:09:45 (GMT)
commitcb5e8be7d6cb80657dd951ba789b124ec8e496e7 (patch)
treec0e43bc0f5e19fc865bbf0dd466627bac38dc804 /test/swmr.c
parent8ad1f3914ac1e1b52e378ce4b94c2965cb322133 (diff)
downloadhdf5-cb5e8be7d6cb80657dd951ba789b124ec8e496e7.zip
hdf5-cb5e8be7d6cb80657dd951ba789b124ec8e496e7.tar.gz
hdf5-cb5e8be7d6cb80657dd951ba789b124ec8e496e7.tar.bz2
1.10 TRILAB-266: Remove clang warnings. (#1200)
* OESS-99:Sync from develop. * TRILAB-266: Remove clang warnings. * Committing clang-format changes * TRILAB-266: Remove clang warnings. * TRILAB-266: Address @byrnHDF review. Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Diffstat (limited to 'test/swmr.c')
-rw-r--r--test/swmr.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/test/swmr.c b/test/swmr.c
index 9a6fee4..5227765 100644
--- a/test/swmr.c
+++ b/test/swmr.c
@@ -5221,8 +5221,8 @@ 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 fapl; /* File access property list */
+ hid_t fid = H5I_INVALID_HID; /* File ID */
+ hid_t fapl = H5I_INVALID_HID; /* File access property list */
char filename[NAME_BUF_SIZE]; /* file name */
pid_t childpid = 0; /* Child process ID */
int child_status; /* Status passed to waitpid */
@@ -6722,14 +6722,14 @@ 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 fapl; /* File access property list */
- pid_t childpid = 0; /* Child process ID */
- pid_t tmppid; /* Child process ID returned by waitpid */
- int child_status; /* Status passed to waitpid */
- int child_wait_option = 0; /* Options passed to waitpid */
- int child_exit_val; /* Exit status of the child */
- char filename[NAME_BUF_SIZE]; /* File name */
+ hid_t fid = H5I_INVALID_HID; /* File ID */
+ hid_t fapl = H5I_INVALID_HID; /* File access property list */
+ pid_t childpid = 0; /* Child process ID */
+ pid_t tmppid; /* Child process ID returned by waitpid */
+ int child_status; /* Status passed to waitpid */
+ int child_wait_option = 0; /* Options passed to waitpid */
+ int child_exit_val; /* Exit status of the child */
+ char filename[NAME_BUF_SIZE]; /* File name */
hid_t did = -1;
hid_t sid = -1;