Many clang -Wextra-semi-stmt fixes (#2537)

* Adds semicolons to function-like macros
* Adds a do..while(0) loop to some macros
* Removes semicolons when inappropriate, especially H5E_TRY_BEGIN/END
This commit is contained in:
Sean McBride
2023-06-15 21:49:02 -07:00
committed by GitHub
parent 10093f7c43
commit 68eba3da69
241 changed files with 2493 additions and 2485 deletions
+2 -2
View File
@@ -1654,7 +1654,7 @@ h5str_dump_region_blocks(JNIEnv *env, h5str_t *str, hid_t region_space, hid_t re
{
nblocks = H5Sget_select_hyper_nblocks(region_space);
}
H5E_END_TRY;
H5E_END_TRY
if (nblocks <= 0) {
ret_value = SUCCEED;
@@ -1831,7 +1831,7 @@ h5str_dump_region_points(JNIEnv *env, h5str_t *str, hid_t region_space, hid_t re
{
npoints = H5Sget_select_elem_npoints(region_space);
}
H5E_END_TRY;
H5E_END_TRY
if (npoints <= 0) {
ret_value = SUCCEED;