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:
parent
77063f4cb6
commit
9a67e1ac8e
9 changed files with 20 additions and 8 deletions
|
@ -396,7 +396,7 @@ grub_cmd_initrd (grub_command_t cmd __attribute__ ((unused)),
|
|||
{
|
||||
grub_file_t file;
|
||||
grub_size_t size = 0;
|
||||
struct grub_linux_initrd_context initrd_ctx = { 0, };
|
||||
struct grub_linux_initrd_context initrd_ctx = { 0, 0, 0 };
|
||||
|
||||
if (argc == 0)
|
||||
return grub_error (GRUB_ERR_BAD_ARGUMENT, N_("filename expected"));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue