diff options
author | Sean McBride <sean@rogue-research.com> | 2023-06-16 04:49:02 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-16 04:49:02 (GMT) |
commit | 68eba3da69e659fab69bbef5901ce42e82cea1dc (patch) | |
tree | f36805f798df6c04092c14dc6803d2cb82f6eff2 /test/farray.c | |
parent | 10093f7c4345061bdbebc12888debbf08fe85a5b (diff) | |
download | hdf5-68eba3da69e659fab69bbef5901ce42e82cea1dc.zip hdf5-68eba3da69e659fab69bbef5901ce42e82cea1dc.tar.gz hdf5-68eba3da69e659fab69bbef5901ce42e82cea1dc.tar.bz2 |
Many clang -Wextra-semi-stmt fixes (#2537)
* Adds semicolons to function-like macros
* Adds a do..while(0) loop to some macros
* Removes semicolons when inappropriate, especially H5E_TRY_BEGIN/END
Diffstat (limited to 'test/farray.c')
-rw-r--r-- | test/farray.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/test/farray.c b/test/farray.c index e5bd6b6..0f522fb 100644 --- a/test/farray.c +++ b/test/farray.c @@ -443,7 +443,7 @@ test_create(hid_t fapl, H5FA_create_t *cparam, farray_test_param_t H5_ATTR_UNUSE { fa = H5FA_create(f, &test_cparam, NULL); } - H5E_END_TRY; + H5E_END_TRY if (fa) { /* Close opened fixed array */ H5FA_close(fa); @@ -460,7 +460,7 @@ test_create(hid_t fapl, H5FA_create_t *cparam, farray_test_param_t H5_ATTR_UNUSE { fa = H5FA_create(f, &test_cparam, NULL); } - H5E_END_TRY; + H5E_END_TRY if (fa) { /* Close opened fixed array */ H5FA_close(fa); @@ -477,7 +477,7 @@ test_create(hid_t fapl, H5FA_create_t *cparam, farray_test_param_t H5_ATTR_UNUSE { fa = H5FA_create(f, &test_cparam, NULL); } - H5E_END_TRY; + H5E_END_TRY if (fa) { /* Close opened fixed array */ H5FA_close(fa); @@ -528,7 +528,7 @@ error: H5FA_close(fa); H5Fclose(file); } - H5E_END_TRY; + H5E_END_TRY return 1; } /* end test_create() */ @@ -596,7 +596,7 @@ error: H5FA_close(fa); H5Fclose(file); } - H5E_END_TRY; + H5E_END_TRY return 1; } /* test_reopen() */ @@ -699,7 +699,7 @@ error: H5Fclose(fid); H5Fclose(fid2); } - H5E_END_TRY; + H5E_END_TRY return 1; } /* test_open_twice() */ @@ -835,7 +835,7 @@ error: H5Fclose(fid0); H5Fclose(fid00); } - H5E_END_TRY; + H5E_END_TRY return 1; } /* test_open_twice_diff() */ @@ -897,7 +897,7 @@ test_delete_open(hid_t fapl, H5FA_create_t *cparam, farray_test_param_t *tparam) { fa2 = H5FA_open(f, fa_addr, NULL); } - H5E_END_TRY; + H5E_END_TRY if (fa2) { /* Close opened array */ H5FA_close(fa2); @@ -920,7 +920,7 @@ test_delete_open(hid_t fapl, H5FA_create_t *cparam, farray_test_param_t *tparam) { fa = H5FA_open(f, fa_addr, NULL); } - H5E_END_TRY; + H5E_END_TRY if (fa) { /* Close opened array */ H5FA_close(fa); @@ -955,7 +955,7 @@ error: H5FA_close(fa2); H5Fclose(file); } - H5E_END_TRY; + H5E_END_TRY return 1; } /* test_delete_open() */ @@ -1481,7 +1481,7 @@ error: H5FA_close(fa); H5Fclose(file); } - H5E_END_TRY; + H5E_END_TRY return 1; } /* test_set_elmts() */ @@ -1609,7 +1609,7 @@ error: H5FA_close(fa); H5Fclose(file); } - H5E_END_TRY; + H5E_END_TRY return 1; } /* test_skip_elmts() */ @@ -1801,7 +1801,7 @@ error: { H5Pclose(fapl); } - H5E_END_TRY; + H5E_END_TRY if (api_ctx_pushed) H5CX_pop(FALSE); |