summaryrefslogtreecommitdiffstats
path: root/test/th5s.c
diff options
context:
space:
mode:
authorDana Robinson <43805+derobins@users.noreply.github.com>2023-07-28 03:55:51 (GMT)
committerGitHub <noreply@github.com>2023-07-28 03:55:51 (GMT)
commitfe4b1c572841fff38a6b9422ea63d345ccfa96bf (patch)
tree5e9567294dff5625010f4fbfc710bc1c547ea3a0 /test/th5s.c
parente6210c80cfe823a7ee6e938daf9e87d302ca9a8e (diff)
downloadhdf5-fe4b1c572841fff38a6b9422ea63d345ccfa96bf.zip
hdf5-fe4b1c572841fff38a6b9422ea63d345ccfa96bf.tar.gz
hdf5-fe4b1c572841fff38a6b9422ea63d345ccfa96bf.tar.bz2
Sync testhdf5 files w/ develop (#3300)
Diffstat (limited to 'test/th5s.c')
-rw-r--r--test/th5s.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/test/th5s.c b/test/th5s.c
index f2c72ca..87e0de9 100644
--- a/test/th5s.c
+++ b/test/th5s.c
@@ -74,18 +74,18 @@
/* Scalar dataset with simple datatype */
#define SPACE3_RANK 0
-unsigned space3_data = 65;
+static unsigned space3_data = 65;
/* Scalar dataset with compound datatype */
#define SPACE4_FIELDNAME1 "c1"
#define SPACE4_FIELDNAME2 "u"
#define SPACE4_FIELDNAME3 "f"
#define SPACE4_FIELDNAME4 "c2"
-size_t space4_field1_off = 0;
-size_t space4_field2_off = 0;
-size_t space4_field3_off = 0;
-size_t space4_field4_off = 0;
-struct space4_struct {
+static size_t space4_field1_off = 0;
+static size_t space4_field2_off = 0;
+static size_t space4_field3_off = 0;
+static size_t space4_field4_off = 0;
+static struct space4_struct {
char c1;
unsigned u;
float f;
@@ -184,7 +184,7 @@ test_h5s_basic(void)
{
sid1 = H5Screate_simple(H5S_MAX_RANK + 1, dims3, NULL);
}
- H5E_END_TRY;
+ H5E_END_TRY
VERIFY(sid1, FAIL, "H5Screate_simple");
/*
@@ -400,7 +400,7 @@ test_h5s_null(void)
ret = H5Sselect_hyperslab(sid, H5S_SELECT_SET, start, NULL, count, NULL);
}
- H5E_END_TRY;
+ H5E_END_TRY
VERIFY(ret, FAIL, "H5Sselect_hyperslab");
/* Check to be sure we can't set a point selection on a null dataspace */
@@ -411,7 +411,7 @@ test_h5s_null(void)
coord[0][0] = 0;
ret = H5Sselect_elements(sid, H5S_SELECT_SET, (size_t)1, (const hsize_t *)coord);
}
- H5E_END_TRY;
+ H5E_END_TRY
VERIFY(ret, FAIL, "H5Sselect_elements");
/* Create first dataset */
@@ -745,7 +745,7 @@ test_h5s_zero_dim(void)
{
ret = H5Dwrite(dset1, H5T_NATIVE_INT, H5S_ALL, sid1, H5P_DEFAULT, wdata);
}
- H5E_END_TRY;
+ H5E_END_TRY
VERIFY(ret, FAIL, "H5Dwrite");
/* Change to "none" selection */
@@ -764,7 +764,7 @@ test_h5s_zero_dim(void)
{
ret = H5Dwrite(dset1, H5T_NATIVE_INT, H5S_ALL, sid1, H5P_DEFAULT, &val);
}
- H5E_END_TRY;
+ H5E_END_TRY
VERIFY(ret, FAIL, "H5Dwrite");
/* Restore the selection to all */
@@ -864,7 +864,7 @@ test_h5s_zero_dim(void)
{
ret = H5Dset_extent(dset1, extend_dims);
}
- H5E_END_TRY;
+ H5E_END_TRY
VERIFY(ret, FAIL, "H5Dset_extent");
ret = H5Pclose(plist_id);
@@ -1265,7 +1265,7 @@ test_h5s_encode(H5F_libver_t low, H5F_libver_t high)
{
ret_id = H5Sdecode(sbuf);
}
- H5E_END_TRY;
+ H5E_END_TRY
VERIFY(ret_id, FAIL, "H5Sdecode");
/* Encode the simple dataspace in a buffer with the fapl setting */
@@ -1457,7 +1457,7 @@ test_h5s_encode1(void)
{
ret_id = H5Sdecode(sbuf);
}
- H5E_END_TRY;
+ H5E_END_TRY
VERIFY(ret_id, FAIL, "H5Sdecode");
/* Encode the simple dataspace in a buffer */