Skip to content

Commit

Permalink
Move variable declaration inside ifdef block
Browse files Browse the repository at this point in the history
  • Loading branch information
byrnHDF committed Nov 22, 2024
1 parent 7183cc3 commit 4ce8ada
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/dsets.c
Original file line number Diff line number Diff line change
Expand Up @@ -2845,13 +2845,14 @@ test_missing_filter(hid_t file)
size_t i, j; /* Local index variables */
herr_t ret; /* Generic return value */
const char *testfile = H5_get_srcdir_filename(FILE_DEFLATE_NAME); /* Corrected test file name */
H5CX_node_t api_ctx = {{0}, NULL}; /* API context node to push */
bool api_ctx_pushed = false; /* Whether API context pushed */

TESTING("dataset access with missing filter");

/* Unregister the deflate filter */
#ifdef H5_HAVE_FILTER_DEFLATE
H5CX_node_t api_ctx = {{0}, NULL}; /* API context node to push */

/* Verify deflate filter is registered currently */
if (H5Zfilter_avail(H5Z_FILTER_DEFLATE) != true) {
H5_FAILED();
Expand Down

0 comments on commit 4ce8ada

Please sign in to comment.