diff options
author | Sean McBride <sean@rogue-research.com> | 2023-08-02 22:46:26 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-02 22:46:26 (GMT) |
commit | 07df0d252cc72fde5ead0abad12e23c8b522c2ee (patch) | |
tree | 4e2bea9eb00f7f97fa8d22bac6c38f37a9576b26 /test/tgenprop.c | |
parent | 86ddedf522aa8a72cfe03b9275ae16800d1fb5b9 (diff) | |
download | hdf5-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/tgenprop.c')
-rw-r--r-- | test/tgenprop.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/test/tgenprop.c b/test/tgenprop.c index c542603..b4bd6c3 100644 --- a/test/tgenprop.c +++ b/test/tgenprop.c @@ -199,7 +199,7 @@ test_genprop_basic_class_prop(void) ret = H5Pregister2(cid1, PROP1_NAME, PROP1_SIZE, PROP1_DEF_VALUE, NULL, NULL, NULL, NULL, NULL, NULL, NULL); } - H5E_END_TRY; + H5E_END_TRY VERIFY(ret, FAIL, "H5Pregister2"); /* Check the existence of the first property */ @@ -227,7 +227,7 @@ test_genprop_basic_class_prop(void) ret = H5Pregister2(cid1, PROP2_NAME, PROP2_SIZE, PROP2_DEF_VALUE, NULL, NULL, NULL, NULL, NULL, NULL, NULL); } - H5E_END_TRY; + H5E_END_TRY VERIFY(ret, FAIL, "H5Pregister2"); /* Check the existence of the second property */ @@ -272,7 +272,7 @@ test_genprop_basic_class_prop(void) { ret = H5Pget_size(cid1, PROP1_NAME, &size); } - H5E_END_TRY; + H5E_END_TRY VERIFY(ret, FAIL, "H5Pget_size"); /* Check the number of properties in class */ @@ -1966,7 +1966,7 @@ test_genprop_deprec_class(void) { ret = H5Pregister1(cid1, PROP1_NAME, PROP1_SIZE, PROP1_DEF_VALUE, NULL, NULL, NULL, NULL, NULL, NULL); } - H5E_END_TRY; + H5E_END_TRY VERIFY(ret, FAIL, "H5Pregister1"); /* Check the existence of the first property */ @@ -1992,7 +1992,7 @@ test_genprop_deprec_class(void) { ret = H5Pregister1(cid1, PROP2_NAME, PROP2_SIZE, PROP2_DEF_VALUE, NULL, NULL, NULL, NULL, NULL, NULL); } - H5E_END_TRY; + H5E_END_TRY VERIFY(ret, FAIL, "H5Pregister1"); /* Check the existence of the second property */ @@ -2036,7 +2036,7 @@ test_genprop_deprec_class(void) { ret = H5Pget_size(cid1, PROP1_NAME, &size); } - H5E_END_TRY; + H5E_END_TRY VERIFY(ret, FAIL, "H5Pget_size"); /* Check the number of properties in class */ @@ -2194,5 +2194,5 @@ cleanup_genprop(void) { H5Fdelete(FILENAME, H5P_DEFAULT); } - H5E_END_TRY; + H5E_END_TRY } |