diff options
author | Dana Robinson <43805+derobins@users.noreply.github.com> | 2023-02-12 15:17:19 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-12 15:17:19 (GMT) |
commit | 35af1b0b7dcb7d0f3170e71aa016c404146aa8ae (patch) | |
tree | 400ecb8117374358c1aa2d1ccbbff83e26750ca1 /test | |
parent | ad4be0322698680cd14a0c07a12a07aa171b6373 (diff) | |
download | hdf5-35af1b0b7dcb7d0f3170e71aa016c404146aa8ae.zip hdf5-35af1b0b7dcb7d0f3170e71aa016c404146aa8ae.tar.gz hdf5-35af1b0b7dcb7d0f3170e71aa016c404146aa8ae.tar.bz2 |
Add szip/libaec to GitHub CI and fix warnings (#2438) (#2450)
szip (or libaec) is currently not tested in CI. This adds szip to the
the Autotools GitHub CI actions on Linux when building with the
Autotools.
This PR also cleans up a few warnings that remained in the szip-
related code so the -Werror check will pass.
Diffstat (limited to 'test')
-rw-r--r-- | test/dsets.c | 8 | ||||
-rw-r--r-- | test/tmisc.c | 4 |
2 files changed, 4 insertions, 8 deletions
diff --git a/test/dsets.c b/test/dsets.c index fa0a39e..1569f9a 100644 --- a/test/dsets.c +++ b/test/dsets.c @@ -2490,11 +2490,7 @@ error: *------------------------------------------------------------------------- */ static herr_t -test_filters(hid_t file, hid_t -#ifndef H5_HAVE_FILTER_SZIP - H5_ATTR_UNUSED -#endif /* H5_HAVE_FILTER_SZIP */ - fapl) +test_filters(hid_t file) { hid_t dc; /* Dataset creation property list ID */ const hsize_t chunk_size[2] = {FILTER_CHUNK_DIM1, FILTER_CHUNK_DIM2}; /* Chunk dimensions */ @@ -15335,7 +15331,7 @@ main(void) nerrors += (test_compact_open_close_dirty(my_fapl) < 0 ? 1 : 0); nerrors += (test_conv_buffer(file) < 0 ? 1 : 0); nerrors += (test_tconv(file) < 0 ? 1 : 0); - nerrors += (test_filters(file, my_fapl) < 0 ? 1 : 0); + nerrors += (test_filters(file) < 0 ? 1 : 0); nerrors += (test_onebyte_shuffle(file) < 0 ? 1 : 0); nerrors += (test_nbit_int(file) < 0 ? 1 : 0); nerrors += (test_nbit_float(file) < 0 ? 1 : 0); diff --git a/test/tmisc.c b/test/tmisc.c index fdd1552..6d813dd 100644 --- a/test/tmisc.c +++ b/test/tmisc.c @@ -3828,7 +3828,7 @@ test_misc22(void) unsigned int flags; size_t cd_nelmts = 32; unsigned int cd_values[32]; - unsigned correct; + size_t correct; if (h5_szip_can_encode() != 1) return; @@ -3922,7 +3922,7 @@ test_misc22(void) NULL); CHECK(ret, FAIL, "H5Pget_filter_by_id2"); - VERIFY(cd_values[2], correct, "SZIP filter returned value for precision"); + VERIFY(cd_values[2], (unsigned)correct, "SZIP filter returned value for precision"); ret = H5Dclose(dsid); CHECK(ret, FAIL, "H5Dclose"); |