Bruno Haible via Gnulib discussion list <bug-gnulib@gnu.org> writes: > Since the first argument of calloc() is meant to be the number of elements > to allocate and the second argument is meant to be the size of each element, > and since here each element is a _gc_cipher_ctx or _gc_hash_ctx, the > warning makes sense. Although the implementation of calloc() is written in > such a way that it does not make a practical difference. But for fwrite() it > does make a difference.
Did GCC 15 enable these with -Wall or -Wextra? Seems like a pointless warning for calloc, but fixing it is fine to prevent extra noise. Collin