summaryrefslogtreecommitdiffstats
path: root/test/API/H5_api_misc_test.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/API/H5_api_misc_test.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/API/H5_api_misc_test.c')
-rw-r--r--test/API/H5_api_misc_test.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/test/API/H5_api_misc_test.c b/test/API/H5_api_misc_test.c
index 4e32f97..2e53804 100644
--- a/test/API/H5_api_misc_test.c
+++ b/test/API/H5_api_misc_test.c
@@ -125,7 +125,7 @@ error:
H5Gclose(container_group);
H5Fclose(file_id);
}
- H5E_END_TRY;
+ H5E_END_TRY
return 1;
}
@@ -359,7 +359,7 @@ error:
H5Gclose(container_group);
H5Fclose(file_id);
}
- H5E_END_TRY;
+ H5E_END_TRY
return 1;
}
@@ -702,7 +702,7 @@ error:
H5Gclose(container_group);
H5Fclose(file_id);
}
- H5E_END_TRY;
+ H5E_END_TRY
return 1;
}
@@ -773,7 +773,7 @@ test_dot_for_object_name(void)
{
group_id = H5Gcreate2(subgroup_id, ".", H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT);
}
- H5E_END_TRY;
+ H5E_END_TRY
if (group_id >= 0) {
H5_FAILED();
@@ -795,7 +795,7 @@ test_dot_for_object_name(void)
dset_id = H5Dcreate2(subgroup_id, ".", H5T_NATIVE_INT, dspace_id, H5P_DEFAULT, H5P_DEFAULT,
H5P_DEFAULT);
}
- H5E_END_TRY;
+ H5E_END_TRY
if (dset_id >= 0) {
H5_FAILED();
@@ -822,7 +822,7 @@ test_dot_for_object_name(void)
{
ret = H5Tcommit2(subgroup_id, ".", dtype_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT);
}
- H5E_END_TRY;
+ H5E_END_TRY
if (ret >= 0) {
H5_FAILED();
@@ -869,7 +869,7 @@ error:
H5Gclose(container_group);
H5Fclose(file_id);
}
- H5E_END_TRY;
+ H5E_END_TRY
return 1;
}
@@ -1031,7 +1031,7 @@ error:
H5Gclose(container_group);
H5Fclose(file_id);
}
- H5E_END_TRY;
+ H5E_END_TRY
return 1;
}