]> git.baikalelectronics.ru Git - uboot.git/commit
efi_loader: avoid initializer element is not constant
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Sat, 9 Jun 2018 15:50:18 +0000 (17:50 +0200)
committerAlexander Graf <agraf@suse.de>
Thu, 14 Jun 2018 08:52:14 +0000 (10:52 +0200)
commit1daf533e7fa51cbe94a4fec371eb9c189dc4c786
tree195bbf19af1d7168d048e4404584e840dde099fc
parent95cac32eff0fdf2ee1da1dd26353a798732505db
efi_loader: avoid initializer element is not constant

When building with -pedantic the current definition of EFI_GUID() causes
an error 'initializer element is not constant'.

Currently EFI_GUID() is used both as an anonymous constant and as an
intializer. A conversion to efi_guid_t is not allowable when using
EFI_GUID() as an initializer. But it is needed when using it as an
anonymous constant.

We should not use EFI_GUID() for anything but an initializer. So let's
introduce a variable where needed and remove the conversion.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: Alexander Graf <agraf@suse.de>
disk/part_efi.c
include/efi.h