summaryrefslogtreecommitdiffstats
path: root/tools/lib/h5tools_error.h
diff options
context:
space:
mode:
authorSean McBride <sean@rogue-research.com>2023-07-24 21:18:04 (GMT)
committerGitHub <noreply@github.com>2023-07-24 21:18:04 (GMT)
commit553e1cd31150f7ca58f87f40d63dd8f200721611 (patch)
tree12b0aa9c90279d015bf6596e2b60d443d384c0c1 /tools/lib/h5tools_error.h
parente0083c48e90beb5b56bf93eccdbfa89baa79750a (diff)
downloadhdf5-553e1cd31150f7ca58f87f40d63dd8f200721611.zip
hdf5-553e1cd31150f7ca58f87f40d63dd8f200721611.tar.gz
hdf5-553e1cd31150f7ca58f87f40d63dd8f200721611.tar.bz2
Another round of fixing -Wextra-semi-stmt warnings (#3264)
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Diffstat (limited to 'tools/lib/h5tools_error.h')
-rw-r--r--tools/lib/h5tools_error.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/lib/h5tools_error.h b/tools/lib/h5tools_error.h
index 4d0bef2..8a7414c 100644
--- a/tools/lib/h5tools_error.h
+++ b/tools/lib/h5tools_error.h
@@ -222,11 +222,11 @@ catch_except:;
* it.
*/
#define H5_LEAVE(v) \
- { \
+ do { \
ret_value = v; \
if (!past_catch) \
goto catch_except; \
- }
+ } while (0)
/*
* H5TOOLS_THROW macro, used to facilitate error reporting within a function body.
@@ -238,7 +238,7 @@ catch_except:;
do { \
H5TOOLS_PUSH_ERROR(H5tools_ERR_STACK_g, H5tools_ERR_CLS_g, H5E_tools_g, H5E_tools_min_id_g, \
__VA_ARGS__); \
- H5_LEAVE(ret_val) \
+ H5_LEAVE(ret_val); \
} while (0)
#endif /* H5TOOLS_ERROR_H */