OESS-168: Remove clang warnings. (#1304)

This commit is contained in:
H. Joe Lee 2022-01-07 16:29:30 -06:00 committed by GitHub
parent 9e6de287e7
commit a564ec39af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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