From mboxrd@z Thu Jan 1 00:00:00 1970 From: Emmanuel Roullit Subject: [PATCH] mk: suppress reference of packed members Date: Sun, 15 Jan 2017 20:47:55 +0100 Message-ID: <1484509675-15075-1-git-send-email-emmanuel.roullit@gmail.com> Cc: dev@dpdk.org To: thomas.monjalon@6wind.com Return-path: Received: from mail-wm0-f66.google.com (mail-wm0-f66.google.com [74.125.82.66]) by dpdk.org (Postfix) with ESMTP id D8C9AF956 for ; Sun, 15 Jan 2017 20:48:48 +0100 (CET) Received: by mail-wm0-f66.google.com with SMTP id d140so9505731wmd.2 for ; Sun, 15 Jan 2017 11:48:48 -0800 (PST) List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" error: taking address of packed member 'mlock' of class or structure 'rte_mem_config' may result in an unaligned pointer value [-Werror,-Waddress-of-packed-member] Signed-off-by: Emmanuel Roullit --- mk/toolchain/clang/rte.vars.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mk/toolchain/clang/rte.vars.mk b/mk/toolchain/clang/rte.vars.mk index 7749b99..04746be 100644 --- a/mk/toolchain/clang/rte.vars.mk +++ b/mk/toolchain/clang/rte.vars.mk @@ -67,7 +67,7 @@ WERROR_FLAGS := -W -Wall -Wstrict-prototypes -Wmissing-prototypes WERROR_FLAGS += -Wmissing-declarations -Wold-style-definition -Wpointer-arith WERROR_FLAGS += -Wnested-externs -Wcast-qual WERROR_FLAGS += -Wformat-nonliteral -Wformat-security -WERROR_FLAGS += -Wundef -Wwrite-strings +WERROR_FLAGS += -Wundef -Wwrite-strings -Wno-address-of-packed-member ifeq ($(RTE_DEVEL_BUILD),y) WERROR_FLAGS += -Werror -- 1.9.1