summaryrefslogtreecommitdiffstats
path: root/test/cache_api.c
diff options
context:
space:
mode:
authorSean McBride <sean@rogue-research.com>2023-06-16 04:49:02 (GMT)
committerGitHub <noreply@github.com>2023-06-16 04:49:02 (GMT)
commit68eba3da69e659fab69bbef5901ce42e82cea1dc (patch)
treef36805f798df6c04092c14dc6803d2cb82f6eff2 /test/cache_api.c
parent10093f7c4345061bdbebc12888debbf08fe85a5b (diff)
downloadhdf5-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/cache_api.c')
-rw-r--r--test/cache_api.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/test/cache_api.c b/test/cache_api.c
index f40782c..b596534 100644
--- a/test/cache_api.c
+++ b/test/cache_api.c
@@ -1658,7 +1658,7 @@ check_fapl_mdc_api_errs(void)
{
result = H5Pget_mdc_config((hid_t)-1, &scratch);
}
- H5E_END_TRY;
+ H5E_END_TRY
if (result >= 0) {
@@ -1696,7 +1696,7 @@ check_fapl_mdc_api_errs(void)
{
result = H5Pget_mdc_config(fapl_id, NULL);
}
- H5E_END_TRY;
+ H5E_END_TRY
if (result >= 0) {
@@ -1714,7 +1714,7 @@ check_fapl_mdc_api_errs(void)
{
result = H5Pget_mdc_config(fapl_id, &scratch);
}
- H5E_END_TRY;
+ H5E_END_TRY
if (result >= 0) {
@@ -1733,7 +1733,7 @@ check_fapl_mdc_api_errs(void)
{
result = H5Pset_mdc_config((hid_t)-1, &default_config);
}
- H5E_END_TRY;
+ H5E_END_TRY
if (result >= 0) {
@@ -1748,7 +1748,7 @@ check_fapl_mdc_api_errs(void)
{
result = H5Pset_mdc_config(fapl_id, NULL);
}
- H5E_END_TRY;
+ H5E_END_TRY
if (result >= 0) {
@@ -1763,7 +1763,7 @@ check_fapl_mdc_api_errs(void)
{
result = H5Pset_mdc_config(fapl_id, &(invalid_configs[i]));
}
- H5E_END_TRY;
+ H5E_END_TRY
if (result >= 0) {
@@ -1891,7 +1891,7 @@ check_file_mdc_api_errs(unsigned paged, hid_t fcpl_id)
{
result = H5Fget_mdc_config((hid_t)-1, &scratch);
}
- H5E_END_TRY;
+ H5E_END_TRY
if (result >= 0) {
@@ -1911,7 +1911,7 @@ check_file_mdc_api_errs(unsigned paged, hid_t fcpl_id)
{
result = H5Fget_mdc_config(file_id, NULL);
}
- H5E_END_TRY;
+ H5E_END_TRY
if (result >= 0) {
@@ -1932,7 +1932,7 @@ check_file_mdc_api_errs(unsigned paged, hid_t fcpl_id)
{
result = H5Fget_mdc_config(file_id, &scratch);
}
- H5E_END_TRY;
+ H5E_END_TRY
if (result >= 0) {
@@ -1955,7 +1955,7 @@ check_file_mdc_api_errs(unsigned paged, hid_t fcpl_id)
{
result = H5Fset_mdc_config((hid_t)-1, &default_config);
}
- H5E_END_TRY;
+ H5E_END_TRY
if (result >= 0) {
@@ -1975,7 +1975,7 @@ check_file_mdc_api_errs(unsigned paged, hid_t fcpl_id)
{
result = H5Fset_mdc_config(file_id, NULL);
}
- H5E_END_TRY;
+ H5E_END_TRY
if (result >= 0) {
@@ -1995,7 +1995,7 @@ check_file_mdc_api_errs(unsigned paged, hid_t fcpl_id)
{
result = H5Fset_mdc_config(file_id, &(invalid_configs[i]));
}
- H5E_END_TRY;
+ H5E_END_TRY
if (result >= 0) {
@@ -2023,7 +2023,7 @@ check_file_mdc_api_errs(unsigned paged, hid_t fcpl_id)
{
result = H5Fget_mdc_hit_rate((hid_t)-1, &hit_rate);
}
- H5E_END_TRY;
+ H5E_END_TRY
if (result >= 0) {
@@ -2043,7 +2043,7 @@ check_file_mdc_api_errs(unsigned paged, hid_t fcpl_id)
{
result = H5Fget_mdc_hit_rate(file_id, NULL);
}
- H5E_END_TRY;
+ H5E_END_TRY
if (result >= 0) {
@@ -2064,7 +2064,7 @@ check_file_mdc_api_errs(unsigned paged, hid_t fcpl_id)
{
result = H5Freset_mdc_hit_rate_stats((hid_t)-1);
}
- H5E_END_TRY;
+ H5E_END_TRY
if (result >= 0) {
@@ -2085,7 +2085,7 @@ check_file_mdc_api_errs(unsigned paged, hid_t fcpl_id)
{
result = H5Fget_mdc_size((hid_t)-1, &max_size, &min_clean_size, &cur_size, &cur_num_entries);
}
- H5E_END_TRY;
+ H5E_END_TRY
if (result >= 0) {