summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDana Robinson <43805+derobins@users.noreply.github.com>2021-11-18 22:57:30 (GMT)
committerGitHub <noreply@github.com>2021-11-18 22:57:30 (GMT)
commit49f7e00ebeb343ea3716836c3fe6c1f0f4568335 (patch)
tree9493196f7403ce1d72860338f66f1947b5b1be78
parent56ba9da70b2028384cc5c0afe3a44439b2df49de (diff)
downloadhdf5-49f7e00ebeb343ea3716836c3fe6c1f0f4568335.zip
hdf5-49f7e00ebeb343ea3716836c3fe6c1f0f4568335.tar.gz
hdf5-49f7e00ebeb343ea3716836c3fe6c1f0f4568335.tar.bz2
Quiets a 'set but not used' warning in h5diff_array.c (#1210)
-rw-r--r--tools/lib/h5diff_array.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/lib/h5diff_array.c b/tools/lib/h5diff_array.c
index 362a2f3..1b0d36f 100644
--- a/tools/lib/h5diff_array.c
+++ b/tools/lib/h5diff_array.c
@@ -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);