summaryrefslogtreecommitdiffstats
path: root/test/tcoords.c
diff options
context:
space:
mode:
authorDana Robinson <derobins@hdfgroup.org>2017-11-15 10:58:16 (GMT)
committerDana Robinson <derobins@hdfgroup.org>2017-11-15 10:58:16 (GMT)
commit5ce8dd5e946c85522edd76f3288e7052bde86b8a (patch)
tree6bc41196dc773246135a10dc721d4a705dae6981 /test/tcoords.c
parent14beb8be8cfc741eb0d83a7be3c7ac90fa76e7a7 (diff)
downloadhdf5-5ce8dd5e946c85522edd76f3288e7052bde86b8a.zip
hdf5-5ce8dd5e946c85522edd76f3288e7052bde86b8a.tar.gz
hdf5-5ce8dd5e946c85522edd76f3288e7052bde86b8a.tar.bz2
Minor warning fixes
Diffstat (limited to 'test/tcoords.c')
-rw-r--r--test/tcoords.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/tcoords.c b/test/tcoords.c
index d729d4b..f639d4b 100644
--- a/test/tcoords.c
+++ b/test/tcoords.c
@@ -669,22 +669,22 @@ static void test_multiple_ends(hid_t file, hbool_t is_chunked)
void test_coords(void)
{
hid_t fid;
+ hbool_t is_chunk[2] = {TRUE, FALSE};
int i;
- hbool_t is_chunk;
herr_t ret; /* Generic error return */
fid = H5Fcreate(FILENAME, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
CHECK(fid, FAIL, "H5Fcreate");
- for(i=0, is_chunk=FALSE; i<2; i++, is_chunk++) {
+ for (i = 0; i < 2; i++) {
/* Test H5Sselect_elements with selection of one block of data */
- test_singleEnd_selElements(fid, is_chunk);
+ test_singleEnd_selElements(fid, is_chunk[i]);
/* Test H5Sselect_hyperslab with selection of one block of data */
- test_singleEnd_selHyperslab(fid, is_chunk);
+ test_singleEnd_selHyperslab(fid, is_chunk[i]);
/* Test H5Sselect_hyperslab with selection of multiple blocks of data */
- test_multiple_ends(fid, is_chunk);
+ test_multiple_ends(fid, is_chunk[i]);
}
ret = H5Fclose(fid);