Skip to content

Commit

Permalink
Quiets a 'set but not used' warning in h5diff_array.c (#1210)
Browse files Browse the repository at this point in the history
  • Loading branch information
derobins authored Nov 18, 2021
1 parent 56ba9da commit 49f7e00
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tools/lib/h5diff_array.c
Original file line number Diff line number Diff line change
Expand Up @@ -1597,6 +1597,9 @@ character_compare_opt(unsigned char *mem1, unsigned char *mem2, hsize_t elemtno,
hbool_t both_zero = FALSE;
double per;

/* both_zero is set in the PER_UNSIGN macro but not used in this function */
(void)both_zero;

HDmemcpy(&temp1_uchar, mem1, sizeof(unsigned char));
HDmemcpy(&temp2_uchar, mem2, sizeof(unsigned char));
H5TOOLS_START_DEBUG(" %d=%d", temp1_uchar, temp2_uchar);
Expand Down

0 comments on commit 49f7e00

Please sign in to comment.