]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
ovmf-native: fix compile issue on new OS like FC27 and Ubuntu 17
authorArmin Kuster <akuster808@gmail.com>
Sat, 24 Feb 2018 20:51:48 +0000 (12:51 -0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 3 Mar 2018 08:32:12 +0000 (08:32 +0000)
commitac0ec9936b54d46491c56af3e6c372ff670b585f
tree4ac679ce63f24b18766b66e053dc61c4bd2eb111
parent76020de1afc7f7643bc35de2d49bce6da0c7b879
ovmf-native: fix compile issue on new OS like FC27 and Ubuntu 17

Fixed this error:
| VfrUtilityLib.cpp:3375:26: error: ISO C++ forbids comparison between
pointer and integer [-fpermissive]
|    if (mStringFileName == '\0' ) {
|                           ^~~~
| VfrUtilityLib.cpp:3398:9: warning: ignoring return value of ‘size_t
fread(void*, size_t, size_t, FILE*)’, declared with attribute
warn_unused_result [-Wunused-result]
|    fread ((char *)StringPtr, sizeof (UINT8), Length, pInFile);
|    ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| ../Makefiles/footer.makefile:30: recipe for target 'VfrUtilityLib.o'
failed

[Yocto #12530]

Signed-off-by: Armin Kuster <akuster808@gmail.com>
meta/recipes-core/ovmf/ovmf/0001-VfrCompile-fix-invalid-comparison-between-pointer-an.patch [new file with mode: 0644]
meta/recipes-core/ovmf/ovmf_git.bb