summaryrefslogtreecommitdiffstats
path: root/test/tmisc.c
diff options
context:
space:
mode:
authorSean McBride <sean@rogue-research.com>2023-08-02 22:46:26 (GMT)
committerGitHub <noreply@github.com>2023-08-02 22:46:26 (GMT)
commit07df0d252cc72fde5ead0abad12e23c8b522c2ee (patch)
tree4e2bea9eb00f7f97fa8d22bac6c38f37a9576b26 /test/tmisc.c
parent86ddedf522aa8a72cfe03b9275ae16800d1fb5b9 (diff)
downloadhdf5-07df0d252cc72fde5ead0abad12e23c8b522c2ee.zip
hdf5-07df0d252cc72fde5ead0abad12e23c8b522c2ee.tar.gz
hdf5-07df0d252cc72fde5ead0abad12e23c8b522c2ee.tar.bz2
Fixes the last of the -Wextra-semi-stmt warnings (#3326)
* Fixed extra semi warning by adjusting alternative macro definitions * Find-replace H5E_END_TRY; -> H5E_END_TRY * Made H5Epush_goto a do-while loop, fixed indentation * Made GOTOERROR and ERRMSG do-while loops * Made Hgoto_error and Hgoto_done do-while loops * Made vrfy_cint_type and vrfy_ctype do-while loops * Made TEST_TYPE_CONTIG and others do-while loops * Removed extraneous semi-colons * Committing clang-format changes --------- Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Diffstat (limited to 'test/tmisc.c')
-rw-r--r--test/tmisc.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/tmisc.c b/test/tmisc.c
index 3033613..b66a80e 100644
--- a/test/tmisc.c
+++ b/test/tmisc.c
@@ -1416,7 +1416,7 @@ test_misc8(void)
{
did = H5Dcreate2(fid, MISC8_DSETNAME4, H5T_NATIVE_INT, sid, H5P_DEFAULT, dcpl, H5P_DEFAULT);
}
- H5E_END_TRY;
+ H5E_END_TRY
VERIFY(did, FAIL, "H5Dcreate2");
/* Set the space allocation time to incremental */
@@ -1429,7 +1429,7 @@ test_misc8(void)
{
did = H5Dcreate2(fid, MISC8_DSETNAME4, H5T_NATIVE_INT, sid, H5P_DEFAULT, dcpl, H5P_DEFAULT);
}
- H5E_END_TRY;
+ H5E_END_TRY
VERIFY(did, FAIL, "H5Dcreate2");
/* Set the space allocation time to early */
@@ -1774,7 +1774,7 @@ test_misc9(void)
{
fid = H5Fopen(MISC9_FILE, H5F_ACC_RDWR, fapl);
}
- H5E_END_TRY;
+ H5E_END_TRY
VERIFY(fid, FAIL, "H5Fopen");
ret = H5Pclose(fapl);
@@ -6097,7 +6097,7 @@ test_misc37(void)
{
ret = H5Fclose(fid);
}
- H5E_END_TRY;
+ H5E_END_TRY
VERIFY(ret, FAIL, "H5Fclose");
} /* end test_misc37() */
@@ -6226,5 +6226,5 @@ cleanup_misc(void)
H5Fdelete(MISC31_FILE, H5P_DEFAULT);
#endif /* H5_NO_DEPRECATED_SYMBOLS */
}
- H5E_END_TRY;
+ H5E_END_TRY
} /* end cleanup_misc() */