diff options
author | Steve Sakoman <steve@sakoman.com> | 2023-01-10 07:09:03 -1000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-01-13 18:11:19 +0000 |
commit | f1292a552f33a329ff27bbdea4c90250908d6301 (patch) | |
tree | fb9c2673568652c25f0c6eeded28259f646e7a1e /scripts/lib/devtool/standard.py | |
parent | 2e0077aeb8cf58d83ea55542e3a3adfb3c287f17 (diff) | |
download | poky-f1292a552f33a329ff27bbdea4c90250908d6301.tar.gz |
ovmf: fix gcc12 warning for device path handling
Backport [https://github.com/tianocore/edk2/commit/22130dcd98b4d4b76ac8d922adb4a2dbc86fa52c]
Fixes:
In function ?SetDevicePathEndNode?,
inlined from ?FileDevicePath? at DevicePathUtilities.c:857:5:
DevicePathUtilities.c:321:3: error: writing 4 bytes into a region of size 1 [-Werror=stringop-overflow=]
321 | memcpy (Node, &mUefiDevicePathLibEndDevicePath, sizeof (mUefiDevicePathLibEndDevicePath));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from UefiDevicePathLib.h:22,
from DevicePathUtilities.c:16:
../Include/Protocol/DevicePath.h: In function ?FileDevicePath?:
../Include/Protocol/DevicePath.h:51:9: note: destination object ?Type? of size 1
51 | UINT8 Type; ///< 0x01 Hardware Device Path.
| ^~~~
(From OE-Core rev: a33abd759e2e9f41e056f87024de3b333e9b948b)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/devtool/standard.py')
0 files changed, 0 insertions, 0 deletions