summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorAllen Byrne <50328838+byrnHDF@users.noreply.github.com>2023-08-03 18:30:34 (GMT)
committerGitHub <noreply@github.com>2023-08-03 18:30:34 (GMT)
commit27b2d6735cbc326dbfa3f8e0a07ca7ba82ffe253 (patch)
tree1ece8273bcfba450d48d1c848ea2ec3aad017d83 /tools
parent7fc8531b767855e69fb4016783a1131ba581fd5b (diff)
downloadhdf5-27b2d6735cbc326dbfa3f8e0a07ca7ba82ffe253.zip
hdf5-27b2d6735cbc326dbfa3f8e0a07ca7ba82ffe253.tar.gz
hdf5-27b2d6735cbc326dbfa3f8e0a07ca7ba82ffe253.tar.bz2
Merge Fixes the last of the -Wextra-semi-stmt warnings #3326 (#3338)
Diffstat (limited to 'tools')
-rw-r--r--tools/libtest/h5tools_test_utils.c2
-rw-r--r--tools/src/h5perf/pio_engine.c8
-rw-r--r--tools/src/h5perf/sio_engine.c8
3 files changed, 9 insertions, 9 deletions
diff --git a/tools/libtest/h5tools_test_utils.c b/tools/libtest/h5tools_test_utils.c
index 87c2ce9..26f467c 100644
--- a/tools/libtest/h5tools_test_utils.c
+++ b/tools/libtest/h5tools_test_utils.c
@@ -1118,7 +1118,7 @@ test_set_configured_fapl(void)
{
result = h5tools_get_fapl(H5P_DEFAULT, NULL, &vfd_info);
}
- H5E_END_TRY;
+ H5E_END_TRY
}
if (C.expected == 0) {
diff --git a/tools/src/h5perf/pio_engine.c b/tools/src/h5perf/pio_engine.c
index 9b2c1c2..8830c82 100644
--- a/tools/src/h5perf/pio_engine.c
+++ b/tools/src/h5perf/pio_engine.c
@@ -52,15 +52,15 @@
#define ELMT_H5_TYPE H5T_NATIVE_UCHAR
#define GOTOERROR(errcode) \
- { \
+ do { \
ret_code = errcode; \
goto done; \
- }
+ } while (0)
#define ERRMSG(mesg) \
- { \
+ do { \
fprintf(stderr, "Proc %d: ", pio_mpi_rank_g); \
fprintf(stderr, "*** Assertion failed (%s) at line %4d in %s\n", mesg, (int)__LINE__, __FILE__); \
- }
+ } while (0)
/* verify: if val is false (0), print mesg. */
#define VRFY(val, mesg) \
diff --git a/tools/src/h5perf/sio_engine.c b/tools/src/h5perf/sio_engine.c
index 849238f..1f73a62 100644
--- a/tools/src/h5perf/sio_engine.c
+++ b/tools/src/h5perf/sio_engine.c
@@ -34,14 +34,14 @@
#define ELMT_H5_TYPE H5T_NATIVE_UCHAR
#define GOTOERROR(errcode) \
- { \
+ do { \
ret_code = errcode; \
goto done; \
- }
+ } while (0)
#define ERRMSG(mesg) \
- { \
+ do { \
fprintf(stderr, "*** Assertion failed (%s) at line %4d in %s\n", mesg, (int)__LINE__, __FILE__); \
- }
+ } while (0)
/* verify: if val is false (0), print mesg. */
#define VRFY(val, mesg) \