]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
ovmf: Fix native build with gcc-12
authorKhem Raj <raj.khem@gmail.com>
Fri, 13 May 2022 16:22:44 +0000 (09:22 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 15 May 2022 07:57:09 +0000 (08:57 +0100)
commit7b67f19d353d88107f52cceda3c858730ac1db54
treed935cde52b33e0a3a20b32a4a10659158612334e
parent2137f68f6e84b669b5aba8f12237f164f710dba2
ovmf: Fix native build with gcc-12

Host distros have started deploying gcc12 as well e.g. archlinux
this build failure shows up which has been fixed upstream

In function ‘GetAlignmentFromFile’,
    inlined from ‘main’ at GenFfs.c:816:20:
GenFfs.c:545:5: error: pointer ‘InFileHandle’ used after ‘fclose’ [-Werror=use-after-free]
  545 |     Error(NULL, 0, 4001, "Resource", "memory cannot be allocated  of %s", InFileHandle);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/ovmf/ovmf/0001-BaseTools-fix-gcc12-warning-1.patch [new file with mode: 0644]
meta/recipes-core/ovmf/ovmf/0001-BaseTools-fix-gcc12-warning.patch [new file with mode: 0644]
meta/recipes-core/ovmf/ovmf_git.bb