From 035ee6a66836bee2b7c6019b3777b55ef9e0d740 Mon Sep 17 00:00:00 2001 From: Patrick Georgi Date: Wed, 2 May 2018 17:14:43 +0200 Subject: [PATCH] Makefile.inc: disable warnings on unaligned struct members We use packed structs with unaligned members all the time, which is the entire point of us using the packed attribute. Change-Id: Ib26b422ba83257d1a7f26134ee20217fad5823cd Signed-off-by: Patrick Georgi Reviewed-on: https://review.coreboot.org/25996 Tested-by: build bot (Jenkins) Reviewed-by: Nico Huber --- Makefile.inc | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile.inc b/Makefile.inc index 151b87660a..bc96941e88 100644 --- a/Makefile.inc +++ b/Makefile.inc @@ -385,6 +385,7 @@ CFLAGS_common += -pipe -g -nostdinc -std=gnu11 CFLAGS_common += -nostdlib -Wall -Wundef -Wstrict-prototypes -Wmissing-prototypes CFLAGS_common += -Wwrite-strings -Wredundant-decls -Wno-trigraphs CFLAGS_common += -Wstrict-aliasing -Wshadow -Wdate-time +CFLAGS_common += -Wno-packed-not-aligned CFLAGS_common += -fno-common -ffreestanding -fno-builtin -fomit-frame-pointer CFLAGS_common += -ffunction-sections -fdata-sections -fno-pie ifeq ($(CONFIG_COMPILER_GCC),y)