From 254f92815b6e4a862ce6d91afe542f0abefd27e7 Mon Sep 17 00:00:00 2001 From: Vladimir Serbinenko Date: Mon, 9 Nov 2015 11:39:30 +0100 Subject: [PATCH] kern/elf: Ignore cast-align warnings --- grub-core/kern/elf.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/grub-core/kern/elf.c b/grub-core/kern/elf.c index 00de36984..4f282c9cf 100644 --- a/grub-core/kern/elf.c +++ b/grub-core/kern/elf.c @@ -28,6 +28,8 @@ GRUB_MOD_LICENSE ("GPLv3+"); +#pragma GCC diagnostic ignored "-Wcast-align" + #if defined(__powerpc__) && defined(GRUB_MACHINE_IEEE1275) #define GRUB_ELF_ENABLE_BI_ENDIAN 1 #else