patches for DPDK stable branches
 help / color / mirror / Atom feed
* [dpdk-stable] [PATCH] mk: disable packed member pointer warning for telemetry
@ 2019-05-16 18:07 Kevin Traynor
  0 siblings, 0 replies; only message in thread
From: Kevin Traynor @ 2019-05-16 18:07 UTC (permalink / raw)
  To: stable, kevin.laatz; +Cc: reshma.pattan, bruce.richardson, Kevin Traynor

Warnings for packed member pointers were disabled for GCC 9.
There was 2 in telemetry that were missed, as it doesn't use
WERROR_FLAGS.

Fixes: a385972c3675 ("mk: disable warning for packed member pointer")

Signed-off-by: Kevin Traynor <ktraynor@redhat.com>
---
 lib/librte_telemetry/Makefile | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/lib/librte_telemetry/Makefile b/lib/librte_telemetry/Makefile
index 1a0506913..ef73a4e73 100644
--- a/lib/librte_telemetry/Makefile
+++ b/lib/librte_telemetry/Makefile
@@ -20,4 +20,9 @@ EXPORT_MAP := rte_telemetry_version.map
 LIBABIVER := 1
 
+ifeq ($(CONFIG_RTE_TOOLCHAIN_GCC),y)
+CFLAGS_rte_telemetry.o += -Wno-address-of-packed-member
+CFLAGS_rte_telemetry_parser.o += -Wno-address-of-packed-member
+endif
+
 # library source files
 SRCS-$(CONFIG_RTE_LIBRTE_TELEMETRY) := rte_telemetry.c
-- 
2.20.1


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-05-16 18:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-16 18:07 [dpdk-stable] [PATCH] mk: disable packed member pointer warning for telemetry Kevin Traynor

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