]> git.ipfire.org Git - thirdparty/grub.git/commit
loader/efi/linux: Fix compile error with Clang
authorAndrew Hamilton <adhamilt@gmail.com>
Sat, 25 Oct 2025 15:53:40 +0000 (10:53 -0500)
committerDaniel Kiper <daniel.kiper@oracle.com>
Tue, 28 Oct 2025 11:19:34 +0000 (12:19 +0100)
commitc602035a9f078df532df8da69e5b43652a9ad600
treeb4a7b2b697e80ede37c740e62dc1d746c71f2ca8
parentf62269767ed9784939f880bfa8179e87d521ca49
loader/efi/linux: Fix compile error with Clang

Clang will produce a warning, which is treated as an error, that
"vendor_defined_data" is uninitialized. This is a "zero length" array
member of this struct. Add conditional compile pragma to allow this to
compile with Clang.

Signed-off-by: Andrew Hamilton <adhamilt@gmail.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
grub-core/loader/efi/linux.c