From 370621b5a10f3acfc5fb8846e82cca23351ce99c Mon Sep 17 00:00:00 2001 From: Andrew Rybchenko Date: Wed, 18 Jan 2017 07:26:08 +0000 Subject: [PATCH] pdump: fix coverage warning Fix GCC 4.8.2 20140120 (Red Hat 4.8.2-16) (RHEL 7.0) false warning when build with EXTRA_CFLAGS='--coverage'. Fixes: 278f945402c5 ("pdump: add new library for packet capture") Signed-off-by: Andrew Rybchenko --- lib/librte_pdump/rte_pdump.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/librte_pdump/rte_pdump.c b/lib/librte_pdump/rte_pdump.c index 596868374d..a580a6a4c1 100644 --- a/lib/librte_pdump/rte_pdump.c +++ b/lib/librte_pdump/rte_pdump.c @@ -337,7 +337,7 @@ pdump_regitser_tx_callbacks(uint16_t end_q, uint8_t port, uint16_t queue, static int set_pdump_rxtx_cbs(struct pdump_request *p) { - uint16_t nb_rx_q, nb_tx_q = 0, end_q, queue; + uint16_t nb_rx_q = 0, nb_tx_q = 0, end_q, queue; uint8_t port; int ret = 0; uint32_t flags; -- 2.20.1