Skip to content

Commit

Permalink
Conditionally mark variable as unused
Browse files Browse the repository at this point in the history
Also delete actually unused variable
  • Loading branch information
ZedThree committed Mar 25, 2024
1 parent 0df2958 commit dac5355
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions libnczarr/zvar.c
Original file line number Diff line number Diff line change
Expand Up @@ -1554,13 +1554,10 @@ NCZ_put_vars(int ncid, int varid, const size_t *startp, const size_t *countp,
int need_to_convert = 0;
int zero_count = 0; /* true if a count is zero */
size_t len = 1;
size64_t fmaxdims[NC_MAX_VAR_DIMS];
NCZ_VAR_INFO_T* zvar;

NC_UNUSED(fmaxdims);

#ifndef LOOK
NC_UNUSED(fmaxdims);
NC_UNUSED(ones);
#endif

/* Find info for this file, group, and var. */
Expand Down Expand Up @@ -1863,6 +1860,10 @@ NCZ_get_vars(int ncid, int varid, const size_t *startp, const size_t *countp,
size_t len = 1;
NCZ_VAR_INFO_T* zvar = NULL;

#ifndef LOOK
NC_UNUSED(ones);
#endif

/* Find info for this file, group, and var. */
if ((retval = nc4_find_grp_h5_var(ncid, varid, &h5, &grp, &var)))
return THROW(retval);
Expand Down

0 comments on commit dac5355

Please sign in to comment.