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/enum.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/enum.c')
-rw-r--r-- | test/enum.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/enum.c b/test/enum.c index 4b8d7c7..8ee0606 100644 --- a/test/enum.c +++ b/test/enum.c @@ -532,7 +532,7 @@ test_value_dsnt_exist(void) { ret = H5Tenum_valueof(tid, "SAX", &val); } - H5E_END_TRY; + H5E_END_TRY if (ret >= 0) FAIL_PUTS_ERROR("H5Tenum_valueof should not pass with a non-existing name"); @@ -541,7 +541,7 @@ test_value_dsnt_exist(void) { ret = H5Tenum_nameof(tid, &val, name, size); } - H5E_END_TRY; + H5E_END_TRY if (ret >= 0) FAIL_PUTS_ERROR("H5Tenum_nameof should not pass with a non-existing value"); @@ -562,7 +562,7 @@ test_value_dsnt_exist(void) { ret = H5Tenum_nameof(tid, &BAD_VALUES[i], name, size); } - H5E_END_TRY; + H5E_END_TRY if (ret >= 0) { H5_FAILED(); printf("Bad value: %d -- ", BAD_VALUES[i]); @@ -576,7 +576,7 @@ test_value_dsnt_exist(void) { ret = H5Tenum_valueof(tid, BAD_NAMES[i], &val); } - H5E_END_TRY; + H5E_END_TRY if (ret >= 0) { H5_FAILED(); printf("Bad name: %s -- ", BAD_NAMES[i]); @@ -652,7 +652,7 @@ test_funcs(void) { ret = H5Tset_pad(tid, H5T_PAD_ZERO, H5T_PAD_ONE); } - H5E_END_TRY; + H5E_END_TRY if (ret >= 0) FAIL_PUTS_ERROR("H5Tset_pad should not work with enum types"); @@ -770,7 +770,7 @@ error: H5Tclose(cmpd_id); H5Tclose(copy_id); } - H5E_END_TRY; + H5E_END_TRY return 1; } |