summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorH. Joe Lee <hyoklee@hdfgroup.org>2022-01-07 22:29:30 (GMT)
committerGitHub <noreply@github.com>2022-01-07 22:29:30 (GMT)
commita564ec39af268a78284e1672a2cf739ae214b3eb (patch)
tree716c4163e6cb24e8e710e33b2007d05191e4e5f7 /src
parent9e6de287e7dee1f504f7c9cd7bfe32d8b349ee04 (diff)
downloadhdf5-a564ec39af268a78284e1672a2cf739ae214b3eb.zip
hdf5-a564ec39af268a78284e1672a2cf739ae214b3eb.tar.gz
hdf5-a564ec39af268a78284e1672a2cf739ae214b3eb.tar.bz2
OESS-168: Remove clang warnings. (#1304)
Diffstat (limited to 'src')
-rw-r--r--src/H5FDros3.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/H5FDros3.c b/src/H5FDros3.c
index df06526..922dac5 100644
--- a/src/H5FDros3.c
+++ b/src/H5FDros3.c
@@ -304,8 +304,12 @@ H5FD_ros3_init(void)
HDfprintf(stdout, "H5FD_ros3_init() called.\n");
#endif
- if (H5I_VFL != H5I_get_type(H5FD_ROS3_g))
+ if (H5I_VFL != H5I_get_type(H5FD_ROS3_g)) {
H5FD_ROS3_g = H5FD_register(&H5FD_ros3_g, sizeof(H5FD_class_t), FALSE);
+ if (H5I_INVALID_HID == H5FD_ROS3_g) {
+ HGOTO_ERROR(H5E_ID, H5E_CANTREGISTER, H5I_INVALID_HID, "unable to register ros3");
+ }
+ }
#if ROS3_STATS
/* pre-compute statsbin boundaries