From 0b0c0e0262ee3f658436b1e3c94019096afe6e6c Mon Sep 17 00:00:00 2001 From: Andrew Lynch Date: Wed, 10 Nov 2021 17:14:42 -0600 Subject: dpdk: disable warnings for using an experimental feature --- host/lib/transport/udp_dpdk_link.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'host') diff --git a/host/lib/transport/udp_dpdk_link.cpp b/host/lib/transport/udp_dpdk_link.cpp index b2fe55e24..194b0536c 100644 --- a/host/lib/transport/udp_dpdk_link.cpp +++ b/host/lib/transport/udp_dpdk_link.cpp @@ -13,6 +13,11 @@ #include #include +// The DPDK function rte_mbuf_to_priv() is experimental and generates a warning. +// This pragma disables that warning since it is expected +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wdeprecated-declarations" + using namespace uhd::transport; using namespace uhd::transport::dpdk; @@ -196,3 +201,4 @@ void udp_dpdk_link::release_send_buff(frame_buff::uptr buff) rte_pktmbuf_free(mbuf); } } +#pragma GCC diagnostic pop -- cgit v1.2.3