From 828508ea8ab53c7741b2e890972ce624fb995e23 Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Thu, 12 Sep 2019 08:51:19 +0200 Subject: 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 --- Makefile | 2 ++ 1 file changed, 2 insertions(+) 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) -- cgit v1.2.3