diff options
author | Patrick Georgi <pgeorgi@chromium.org> | 2018-05-02 17:14:43 +0200 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2018-05-20 12:11:28 +0000 |
commit | 035ee6a66836bee2b7c6019b3777b55ef9e0d740 (patch) | |
tree | 0b738855cf5eb52bc9a6709f0d4fba6f712a108a | |
parent | e51d731abcd25dee546508e28ba58dd205e3b3f1 (diff) | |
download | coreboot-035ee6a66836bee2b7c6019b3777b55ef9e0d740.tar.xz |
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 <pgeorgi@chromium.org>
Reviewed-on: https://review.coreboot.org/25996
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Nico Huber <nico.h@gmx.de>
-rw-r--r-- | Makefile.inc | 1 |
1 files changed, 1 insertions, 0 deletions
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) |