summaryrefslogtreecommitdiffstats
path: root/java/src/jni
diff options
context:
space:
mode:
authorSean McBride <sean@rogue-research.com>2023-06-16 04:49:02 (GMT)
committerGitHub <noreply@github.com>2023-06-16 04:49:02 (GMT)
commit68eba3da69e659fab69bbef5901ce42e82cea1dc (patch)
treef36805f798df6c04092c14dc6803d2cb82f6eff2 /java/src/jni
parent10093f7c4345061bdbebc12888debbf08fe85a5b (diff)
downloadhdf5-68eba3da69e659fab69bbef5901ce42e82cea1dc.zip
hdf5-68eba3da69e659fab69bbef5901ce42e82cea1dc.tar.gz
hdf5-68eba3da69e659fab69bbef5901ce42e82cea1dc.tar.bz2
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
Diffstat (limited to 'java/src/jni')
-rw-r--r--java/src/jni/h5util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/java/src/jni/h5util.c b/java/src/jni/h5util.c
index 56708a8..d651173 100644
--- a/java/src/jni/h5util.c
+++ b/java/src/jni/h5util.c
@@ -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;