summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2019-09-12 08:51:19 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2019-09-12 08:51:22 +0200
commit828508ea8ab53c7741b2e890972ce624fb995e23 (patch)
treead769562a240f9bfe5ff93a302f2a2bdaf4de001 /Makefile
parent613d5df6f6498cdf401a171cb0234083c59f638d (diff)
downloadbarebox-828508ea8ab53c7741b2e890972ce624fb995e23.tar.gz
barebox-828508ea8ab53c7741b2e890972ce624fb995e23.tar.xz
gcc-9: silence 'address-of-packed-member' warning
As done in the Linux Kernel. Most of the packed structures we have are optimized to not generate any unaligned accesses, so this warning produces a lot of false positives which are hard to fix in the code. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 5ca5fab717..aa50aa73ed 100644
--- a/Makefile
+++ b/Makefile
@@ -478,6 +478,8 @@ CFLAGS += $(call cc-disable-warning, trampolines)
CFLAGS += $(call cc-option, -fno-delete-null-pointer-checks,)
+CFLAGS += $(call cc-disable-warning, address-of-packed-member)
+
# arch Makefile may override CC so keep this after arch Makefile is included
NOSTDINC_FLAGS += -nostdinc -isystem $(shell $(CC) -print-file-name=include)
CHECKFLAGS += $(NOSTDINC_FLAGS)