aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib
diff options
context:
space:
mode:
authorAndrew Lynch <andrew.lynch@ni.com>2021-11-10 17:14:42 -0600
committerAaron Rossetto <aaron.rossetto@ni.com>2021-12-06 13:22:03 -0800
commit0b0c0e0262ee3f658436b1e3c94019096afe6e6c (patch)
treeea55ff4784e044fdb4b597cb515f7edf59d5301e /host/lib
parent1f89be5345fcbced484beaa44a3acdbd59af0f66 (diff)
downloaduhd-0b0c0e0262ee3f658436b1e3c94019096afe6e6c.tar.gz
uhd-0b0c0e0262ee3f658436b1e3c94019096afe6e6c.tar.bz2
uhd-0b0c0e0262ee3f658436b1e3c94019096afe6e6c.zip
dpdk: disable warnings for using an experimental feature
Diffstat (limited to 'host/lib')
-rw-r--r--host/lib/transport/udp_dpdk_link.cpp6
1 files changed, 6 insertions, 0 deletions
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 <arpa/inet.h>
#include <memory>
+// 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