Skip to content

Commit

Permalink
Fix unused variable in tselect.c (HDFGroup#3701)
Browse files Browse the repository at this point in the history
  • Loading branch information
derobins authored and jhendersonHDF committed Oct 18, 2023
1 parent 85a530b commit 5c9d76c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions test/tselect.c
Original file line number Diff line number Diff line change
Expand Up @@ -1875,8 +1875,8 @@ test_select_hyper_contig3(hid_t dset_type, hid_t xfer_plist)
**
****************************************************************/
static void
verify_select_hyper_contig_dr__run_test(const uint16_t *cube_buf, size_t H5_ATTR_NDEBUG_UNUSED cube_size,
unsigned edge_size, unsigned cube_rank)
verify_select_hyper_contig_dr__run_test(const uint16_t *cube_buf, size_t cube_size, unsigned edge_size,
unsigned cube_rank)
{
const uint16_t *cube_ptr; /* Pointer into the cube buffer */
uint16_t expected_value; /* Expected value in dataset */
Expand All @@ -1902,7 +1902,9 @@ verify_select_hyper_contig_dr__run_test(const uint16_t *cube_buf, size_t H5_ATTR
m = 0;
do {
/* Sanity check */
assert(s < cube_size);
if (s >= cube_size)
TestErrPrintf("s should not be >= cube_size! s = %zu, cube_size = %zu\n", s,
cube_size);

/* Check for correct value */
if (*cube_ptr != expected_value)
Expand Down

0 comments on commit 5c9d76c

Please sign in to comment.