* [dpdk-dev] [PATCH] mk: suppress reference of packed members
@ 2017-01-15 19:47 Emmanuel Roullit
2017-01-16 15:33 ` Thomas Monjalon
0 siblings, 1 reply; 2+ messages in thread
From: Emmanuel Roullit @ 2017-01-15 19:47 UTC (permalink / raw)
To: thomas.monjalon; +Cc: 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 <emmanuel.roullit@gmail.com>
---
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [dpdk-dev] [PATCH] mk: suppress reference of packed members
2017-01-15 19:47 [dpdk-dev] [PATCH] mk: suppress reference of packed members Emmanuel Roullit
@ 2017-01-16 15:33 ` Thomas Monjalon
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Monjalon @ 2017-01-16 15:33 UTC (permalink / raw)
To: Emmanuel Roullit; +Cc: dev
Hi,
2017-01-15 20:47, Emmanuel Roullit:
> 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]
Is it a compilation error?
Which compiler version?
> --- 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
Why removing the warning?
Is there something to fix in the code?
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-01-16 15:33 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-15 19:47 [dpdk-dev] [PATCH] mk: suppress reference of packed members Emmanuel Roullit
2017-01-16 15:33 ` Thomas Monjalon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).