]> git.ipfire.org Git - thirdparty/grub.git/commit
gnulib: Add patch to allow GRUB w/GCC-15 compile
authorAndrew Hamilton <adhamilt@gmail.com>
Wed, 18 Jun 2025 01:58:25 +0000 (20:58 -0500)
committerDaniel Kiper <daniel.kiper@oracle.com>
Thu, 26 Jun 2025 15:02:21 +0000 (17:02 +0200)
commitac1512b872af8567b408518a7efa01607a0219ae
tree295e825b0ae831f2c3683a1d239dddff543c389e
parentdb506b3b83640ab166a782e1ca47c47836afddcd
gnulib: Add patch to allow GRUB w/GCC-15 compile

Pull in Gnulib fix to allow lib/base64.c to compile using GCC 15 or newer.

Pulled from Gnulib commit 25df6dc425 (Silence some
-Wunterminated-string-initialization warnings.)

GCC 15 adds a new compiler warning "-Wunterminated-string-initialization"
that will trigger what is considered a false-positive in lib/base64.c as
this array is not treated as a string but an array of characters so the
lack of NUL string terminator is expected.

GCC team has added ability to flag such instances of arrays that the
compiler may think are strings as "nonstring" arrays to avoid this
warning: __attribute__((nonstring)).

Fixes: https://savannah.gnu.org/bugs/?66470
Signed-off-by: Andrew Hamilton <adhamilt@gmail.com>
Reviewed-by: Sudhakar Kuppusamy <sudhakar@linux.ibm.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
bootstrap.conf
conf/Makefile.extra-dist
grub-core/lib/gnulib-patches/fix-gcc-15-compile.patch [new file with mode: 0644]