diff options
author | Larry Knox <lrknox@hdfgroup.org> | 2022-04-05 16:02:12 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-05 16:02:12 (GMT) |
commit | 9f2b38bb61df6136d214cb7ab248f73d1ff9458c (patch) | |
tree | 703b1eec9eee535667b8753916b3714815f8f810 /src/H5FDros3.c | |
parent | bddd148fd29deb18439767c416199914845431b8 (diff) | |
download | hdf5-9f2b38bb61df6136d214cb7ab248f73d1ff9458c.zip hdf5-9f2b38bb61df6136d214cb7ab248f73d1ff9458c.tar.gz hdf5-9f2b38bb61df6136d214cb7ab248f73d1ff9458c.tar.bz2 |
Clang warning fixes from develop. (#1583)
Diffstat (limited to 'src/H5FDros3.c')
-rw-r--r-- | src/H5FDros3.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/H5FDros3.c b/src/H5FDros3.c index 2470c8b..decc341 100644 --- a/src/H5FDros3.c +++ b/src/H5FDros3.c @@ -326,8 +326,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 |