* tests/test-bitset.c (check_zero): Mark 'i' as possibly unused.
* tests/test-nonblocking-reader.h (full_read): Mark 'spent_time' as
possibly unused.
+2023-09-04 Bruno Haible <bruno@clisp.org>
+
+ bitset, nonblocking-* tests: Fix gcc -Wunused-but-set-variable warnings.
+ * tests/test-bitset.c (check_zero): Mark 'i' as possibly unused.
+ * tests/test-nonblocking-reader.h (full_read): Mark 'spent_time' as
+ possibly unused.
+
2023-09-04 Bruno Haible <bruno@clisp.org>
pipe-filter-gi, pipe-filter-ii tests: Fix some gcc -Wshadow warnings.
/* FOR_EACH. */
{
bitset_iterator iter;
- bitset_bindex i;
+ _GL_UNUSED bitset_bindex i;
BITSET_FOR_EACH (iter, bs, i, 0)
ASSERT (0);
BITSET_FOR_EACH_REVERSE (iter, bs, i, 0)
END_TIMING
dbgfprintf (stderr, "%s: << read -> %ld%s\n", PROG_ROLE,
(long) ret, dbgstrerror (ret < 0, saved_errno));
+ (void) spent_time;
if (ret < 0)
return -1;
else