summaryrefslogtreecommitdiffstats
path: root/src/H5FDmirror.c
diff options
context:
space:
mode:
authorH. Joe Lee <hyoklee@hdfgroup.org>2022-01-07 22:29:56 (GMT)
committerGitHub <noreply@github.com>2022-01-07 22:29:56 (GMT)
commit58e2157c7e5e310b2d7d5366da2f99d2db051f4f (patch)
tree76506367680820b0682b27a4fec52ed042d6a18d /src/H5FDmirror.c
parenta564ec39af268a78284e1672a2cf739ae214b3eb (diff)
downloadhdf5-58e2157c7e5e310b2d7d5366da2f99d2db051f4f.zip
hdf5-58e2157c7e5e310b2d7d5366da2f99d2db051f4f.tar.gz
hdf5-58e2157c7e5e310b2d7d5366da2f99d2db051f4f.tar.bz2
OESS-168: Remove clang warnings. (#1305)
Diffstat (limited to 'src/H5FDmirror.c')
-rw-r--r--src/H5FDmirror.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/H5FDmirror.c b/src/H5FDmirror.c
index 84c744c..e74901a 100644
--- a/src/H5FDmirror.c
+++ b/src/H5FDmirror.c
@@ -225,9 +225,11 @@ H5FD_mirror_init(void)
LOG_OP_CALL(__func__);
- if (H5I_VFL != H5I_get_type(H5FD_MIRROR_g))
+ if (H5I_VFL != H5I_get_type(H5FD_MIRROR_g)) {
H5FD_MIRROR_g = H5FD_register(&H5FD_mirror_g, sizeof(H5FD_class_t), FALSE);
-
+ if (H5I_INVALID_HID == H5FD_MIRROR_g)
+ HGOTO_ERROR(H5E_ID, H5E_CANTREGISTER, H5I_INVALID_HID, "unable to register mirror");
+ }
ret_value = H5FD_MIRROR_g;
done: