From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by bombadil.infradead.org with esmtps (Exim 4.92.2 #3 (Red Hat Linux)) id 1i8J05-0004AW-RW for barebox@lists.infradead.org; Thu, 12 Sep 2019 06:54:44 +0000 From: Sascha Hauer Date: Thu, 12 Sep 2019 08:54:39 +0200 Message-Id: <20190912065439.2816-1-s.hauer@pengutronix.de> MIME-Version: 1.0 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH] gcc-9: silence 'address-of-packed-member' warning To: Barebox List Cc: Andrey Smirnov 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) -- 2.23.0 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox