summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDana Robinson <derobins@hdfgroup.org>2019-06-26 06:19:09 (GMT)
committerDana Robinson <derobins@hdfgroup.org>2019-06-26 06:19:09 (GMT)
commit8ac60adaa2af21b57185c145d70a12d16a0b7409 (patch)
tree808243f3ebfd3eb78218840501224f7668e49bd5
parenta3cfb08a10fcf7d820b274a61b845c6eb9f2a715 (diff)
downloadhdf5-8ac60adaa2af21b57185c145d70a12d16a0b7409.zip
hdf5-8ac60adaa2af21b57185c145d70a12d16a0b7409.tar.gz
hdf5-8ac60adaa2af21b57185c145d70a12d16a0b7409.tar.bz2
Banish enum increment warnings
-rw-r--r--test/enc_dec_plist.c4
-rw-r--r--test/th5s.c4
-rw-r--r--test/vds.c4
3 files changed, 6 insertions, 6 deletions
diff --git a/test/enc_dec_plist.c b/test/enc_dec_plist.c
index 2c8f691..23bec6e 100644
--- a/test/enc_dec_plist.c
+++ b/test/enc_dec_plist.c
@@ -187,8 +187,8 @@ main(void)
-1 };
/* Loop through all the combinations of low/high version bounds */
- for(low = H5F_LIBVER_EARLIEST; low < H5F_LIBVER_NBOUNDS; low++) {
- for(high = H5F_LIBVER_EARLIEST; high < H5F_LIBVER_NBOUNDS; high++) {
+ for(low = H5F_LIBVER_EARLIEST; low < H5F_LIBVER_NBOUNDS; H5_INC_ENUM(H5F_libver_t, low)) {
+ for(high = H5F_LIBVER_EARLIEST; high < H5F_LIBVER_NBOUNDS; H5_INC_ENUM(H5F_libver_t, high)) {
char msg[80]; /* Message for file version bounds */
char* low_string; /* The low bound string */
char* high_string; /* The high bound string */
diff --git a/test/th5s.c b/test/th5s.c
index c5dfa97..a48979b 100644
--- a/test/th5s.c
+++ b/test/th5s.c
@@ -3366,8 +3366,8 @@ test_h5s(void)
test_h5s_zero_dim(); /* Test dataspace with zero dimension size */
/* Loop through all the combinations of low/high version bounds */
- for(low = H5F_LIBVER_EARLIEST; low < H5F_LIBVER_NBOUNDS; low++) {
- for(high = H5F_LIBVER_EARLIEST; high < H5F_LIBVER_NBOUNDS; high++) {
+ for(low = H5F_LIBVER_EARLIEST; low < H5F_LIBVER_NBOUNDS; H5_INC_ENUM(H5F_libver_t, low)) {
+ for(high = H5F_LIBVER_EARLIEST; high < H5F_LIBVER_NBOUNDS; H5_INC_ENUM(H5F_libver_t, high)) {
/* Invalid combinations, just continue */
if(high == H5F_LIBVER_EARLIEST || high < low)
diff --git a/test/vds.c b/test/vds.c
index af052a8..30f8eec 100644
--- a/test/vds.c
+++ b/test/vds.c
@@ -12160,8 +12160,8 @@ main(void)
if((my_fapl = H5Pcopy(fapl)) < 0) TEST_ERROR
/* Loop through all the combinations of low/high version bounds */
- for(low = H5F_LIBVER_EARLIEST; low < H5F_LIBVER_NBOUNDS; low++) {
- for(high = H5F_LIBVER_EARLIEST; high < H5F_LIBVER_NBOUNDS; high++) {
+ for(low = H5F_LIBVER_EARLIEST; low < H5F_LIBVER_NBOUNDS; H5_INC_ENUM(H5F_libver_t, low)) {
+ for(high = H5F_LIBVER_EARLIEST; high < H5F_LIBVER_NBOUNDS; H5_INC_ENUM(H5F_libver_t, high)) {
char msg[80]; /* Message for file version bounds */
char *low_string; /* The low bound string */
char *high_string; /* The high bound string */