diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2019-09-12 08:51:19 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2019-09-12 08:51:22 +0200 |
commit | 828508ea8ab53c7741b2e890972ce624fb995e23 (patch) | |
tree | ad769562a240f9bfe5ff93a302f2a2bdaf4de001 | |
parent | 613d5df6f6498cdf401a171cb0234083c59f638d (diff) | |
download | barebox-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>
-rw-r--r-- | Makefile | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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) |