]> 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)
committerSteve Sakoman <steve@sakoman.com>
Thu, 2 Jun 2022 02:33:15 +0000 (16:33 -1000)
commitd28d84c5b43ffcc312808af085d949e403805aca
tree0ccc6b517a51ee07a809c7934240b33c60315e22
parentbbb7dcb461c09409b556571cf645bcadf12f397c
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>
(cherry picked from commit 7b67f19d353d88107f52cceda3c858730ac1db54)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
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