From 49f7e00ebeb343ea3716836c3fe6c1f0f4568335 Mon Sep 17 00:00:00 2001 From: Dana Robinson <43805+derobins@users.noreply.github.com> Date: Thu, 18 Nov 2021 14:57:30 -0800 Subject: Quiets a 'set but not used' warning in h5diff_array.c (#1210) --- tools/lib/h5diff_array.c | 3 +++ 1 file changed, 3 insertions(+) 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); -- cgit v0.12