diff options
author | Dana Robinson <43805+derobins@users.noreply.github.com> | 2022-07-18 14:35:21 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-18 14:35:21 (GMT) |
commit | 08b797de73f0ff2ed8bfa3904b42064b26373e96 (patch) | |
tree | 54ddf2cd5273c2eccc2196277b152ae2dbdd0d87 /test | |
parent | 9b53b2f6ca41ade0152e6f4a091ec387b44e9c97 (diff) | |
download | hdf5-08b797de73f0ff2ed8bfa3904b42064b26373e96.zip hdf5-08b797de73f0ff2ed8bfa3904b42064b26373e96.tar.gz hdf5-08b797de73f0ff2ed8bfa3904b42064b26373e96.tar.bz2 |
Fixes warnings when the deflate filter is not built (#1904)
* Fixes warnings when the deflate filter is not built
* Committing clang-format changes
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/filter_plugin.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/filter_plugin.c b/test/filter_plugin.c index 4dcf74a..1454156 100644 --- a/test/filter_plugin.c +++ b/test/filter_plugin.c @@ -438,9 +438,11 @@ static herr_t test_dataset_write_with_filters(hid_t fid) { hid_t dcpl_id = -1; /* Dataset creation property list ID */ - unsigned int compress_level; /* Deflate compression level */ unsigned int filter1_data; /* Data used by filter 1 */ unsigned int libver_values[4]; /* Used w/ the filter that makes HDF5 calls */ +#ifdef H5_HAVE_FILTER_DEFLATE + unsigned int compress_level; /* Deflate compression level */ +#endif /*---------------------------------------------------------- * STEP 1: Test deflation by itself. |