Re: -Walloc-size warning for mp_limbs_t in vasnprintf.c with GCC 14

2024-05-15 Thread Philip Withnall
Hi, On Wed, 2024-05-15 at 17:14 +0200, Bruno Haible wrote: > > The fix we’ve put together for GLib is here, and makes the obvious > > switch from allocating one byte to allocating `sizeof (mp_limb_t)`: > > https://gitlab.gnome.org/GNOME/glib/-/merge_requests/4066/diffs?commit_id=cbc58085455b699e9c

Re: -Walloc-size warning for mp_limbs_t in vasnprintf.c with GCC 14

2024-05-15 Thread Bruno Haible
Hi, Philip Withnall wrote: > We’ve seen a compiler warning in the vasnprintf module (as copied into > GLib) when building with GCC 14 (on msys2, although I don’t think > that’s relevant). > > ``` > ../glib/gnulib/vasnprintf.c: In function 'multiply': > ../glib/gnulib/vasnprintf.c:382:21: error: a

-Walloc-size warning for mp_limbs_t in vasnprintf.c with GCC 14

2024-05-15 Thread Philip Withnall
Hello, We’ve seen a compiler warning in the vasnprintf module (as copied into GLib) when building with GCC 14 (on msys2, although I don’t think that’s relevant). ``` ../glib/gnulib/vasnprintf.c: In function 'multiply': ../glib/gnulib/vasnprintf.c:382:21: error: allocation of insufficient size '1'