* lib/bitset/list.c (lbitset_copy_): Remove redundant test from the
loop's first iteration.
+2023-05-18 Bruno Haible <bruno@clisp.org>
+
+ bitset: Silence gcc warning.
+ * lib/bitset/list.c (lbitset_copy_): Remove redundant test from the
+ loop's first iteration.
+
2023-05-18 Bruno Haible <bruno@clisp.org>
stack: Silence gcc warning in tests.
lbitset_elt *prev = 0;
lbitset_elt *tmp;
- for (lbitset_elt *elt = head; elt; elt = elt->next)
+ lbitset_elt *elt = head;
+ do
{
tmp = lbitset_elt_alloc ();
tmp->index = elt->index;
prev = tmp;
memcpy (tmp->words, elt->words, sizeof (elt->words));
+
+ elt = elt->next;
}
+ while (elt);
LBITSET_TAIL (dst) = tmp;
dst->b.csize = LBITSET_ELT_WORDS;