mirror of
https://github.com/HDFGroup/hdf5.git
synced 2026-09-25 04:09:44 +03:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user