mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-21 14:59:34 +00:00
Use full initializer for initrd_ctx to avoid fatal warnings with older GCC
struct ... foo = { 0, } is valid initializer, but older GCC emits
warning which is fatal error due to -Werror=missing-field-initializer.
So simply use full initializer to avoid these errors. This was fixed
probably in GCC 4.7.
See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=36750
This commit is contained in:
1 parent
77063f4cb6
commit
9a67e1ac8e
9 files changed
+20
-8
No files matched your search
@@ -373,7 +373,7 @@ grub_cmd_initrd (grub_command_t cmd __attribute__ ((unused)),
|
||||
grub_addr_t paddr;
|
||||
grub_addr_t addr;
|
||||
int ret;
|
||||
struct grub_linux_initrd_context initrd_ctx = { 0, };
|
||||
struct grub_linux_initrd_context initrd_ctx = { 0, 0, 0 };
|
||||
|
||||
if (argc == 0)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user