mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-02-17 22:49:02 +00:00
efi_loader: avoid alignment error
In packed structures GUIDs are not aligned. Avoid a build error with GCC 9.1 by using const void * as argument for guidcmp(). Reported-by: Ramon Fried <rfried.dev@gmail.com> Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
This commit is contained in:
parent
06e921b185
commit
ade317a281
1 changed files with 1 additions and 1 deletions
|
@ -567,7 +567,7 @@ static inline void ascii2unicode(u16 *unicode, const char *ascii)
|
|||
*unicode = 0;
|
||||
}
|
||||
|
||||
static inline int guidcmp(const efi_guid_t *g1, const efi_guid_t *g2)
|
||||
static inline int guidcmp(const void *g1, const void *g2)
|
||||
{
|
||||
return memcmp(g1, g2, sizeof(efi_guid_t));
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue