mirror of
https://git.yoctoproject.org/poky
synced 2026-05-08 05:09:24 +00:00
grub: Enhance Waddress-of-packed-member patch to cover x86_64 testcase
This was not compiled for x86_64 when previously testing aarch64 so some tests were missed. (From OE-Core rev: c2cb8827dc5bdeadd78f462398630c05e5a9ebb7) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -247,3 +247,16 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
|
||||
static grub_dl_t my_mod;
|
||||
|
||||
--- a/grub-core/commands/usbtest.c
|
||||
+++ b/grub-core/commands/usbtest.c
|
||||
@@ -63,6 +63,10 @@ static const char *usb_devspeed[] =
|
||||
"High"
|
||||
};
|
||||
|
||||
+#if __GNUC__ >= 9
|
||||
+#pragma GCC diagnostic ignored "-Waddress-of-packed-member"
|
||||
+#endif
|
||||
+
|
||||
static grub_usb_err_t
|
||||
grub_usb_get_string (grub_usb_device_t dev, grub_uint8_t index, int langid,
|
||||
char **string)
|
||||
|
||||
Reference in New Issue
Block a user