summaryrefslogtreecommitdiffstats
path: root/test/filter_plugin.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/filter_plugin.c')
-rw-r--r--test/filter_plugin.c4
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.