DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev]  [PATCH] mk: disable flag for no packet member warning
@ 2019-07-22 12:39 kkanas
  2019-07-22 13:44 ` Bruce Richardson
  0 siblings, 1 reply; 4+ messages in thread
From: kkanas @ 2019-07-22 12:39 UTC (permalink / raw)
  To: dev, Thomas Monjalon; +Cc: Krzysztof Kanas, reshma.pattan

From: Krzysztof Kanas <kkanas@marvell.com>

gcc prior 9 don't will add additional warning for unrecognized command
line option, but only when there is some other warning in the code, e.g
unused variable.

Fixes: a385972c3675 ("mk: disable warning for packed member pointer")
Cc: reshma.pattan@intel.com

Signed-off-by: Krzysztof Kanas <kkanas@marvell.com>
---
 mk/toolchain/gcc/rte.vars.mk | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/mk/toolchain/gcc/rte.vars.mk b/mk/toolchain/gcc/rte.vars.mk
index b852fcfd7e24..1bd384f7ca3f 100644
--- a/mk/toolchain/gcc/rte.vars.mk
+++ b/mk/toolchain/gcc/rte.vars.mk
@@ -88,7 +88,9 @@ WERROR_FLAGS += -Wno-format-truncation
 endif
 
 # disable packed member unalign warnings
+ifeq ($(shell test $(HOST_GCC_VERSION) -gt 90 && echo 1), 1)
 WERROR_FLAGS += -Wno-address-of-packed-member
+endif
 
 export CC AS AR LD OBJCOPY OBJDUMP STRIP READELF
 export TOOLCHAIN_CFLAGS TOOLCHAIN_LDFLAGS TOOLCHAIN_ASFLAGS
-- 
2.21.0


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-07-23 13:18 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-22 12:39 [dpdk-dev] [PATCH] mk: disable flag for no packet member warning kkanas
2019-07-22 13:44 ` Bruce Richardson
2019-07-23  9:05   ` [dpdk-dev] [EXT] " Krzysztof Kanas
2019-07-23 13:18     ` Bruce Richardson

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).