]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
ovmf: Fix build with GCC 16 and GLIBC 2.43 master
authorZoltán Böszörményi <zboszor@gmail.com>
Thu, 9 Apr 2026 12:22:25 +0000 (14:22 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 13 Apr 2026 20:42:31 +0000 (21:42 +0100)
commita1db482ecd2824a4ae67a3c2a8e607b607ab4a43
tree6e258fba1e4e877cf40019bfe8b59389797c4adf
parent6b67b56e08a4fcf632b98d49cb59bf12d7b123e0
ovmf: Fix build with GCC 16 and GLIBC 2.43

Backport two patches from master to fix native build with
GCC 16 and GLIBC 2.43

commit 3597306191297b504683b83fe7750e49c6a2e836
Author: Gerd Hoffmann <kraxel@redhat.com>
Date:   Thu Jan 29 09:23:32 2026 +0100

    BaseTools/StringFuncs: fix gcc 16 warning

    StringFuncs.c: In function ‘SplitStringByWhitespace’:
    StringFuncs.c:113:15: error: variable ‘Item’ set but not used [-Werror=unused-but-set-variable=]
      113 |   UINTN       Item;
          |               ^~~~

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Author: Gerd Hoffmann <kraxel@redhat.com>
Date:   Mon Dec 8 10:28:50 2025 +0100

    BaseTools/EfiRom: fix compiler warning

    New warning after updating gcc:

    EfiRom.c: In function ‘main’:
    EfiRom.c:78:17: error: assignment discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]

    The assigned value is not used, so fix the warning by just removing it.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Zoltán Böszörményi <zboszor@gmail.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/ovmf/ovmf/0001-BaseTools-StringFuncs-fix-gcc-16-warning.patch [new file with mode: 0644]
meta/recipes-core/ovmf/ovmf/0002-BaseTools-EfiRom-fix-compiler-warning.patch [new file with mode: 0644]
meta/recipes-core/ovmf/ovmf_git.bb