From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from nbfkord-smmo03.seg.att.com (nbfkord-smmo03.seg.att.com [209.65.160.84]) by dpdk.org (Postfix) with ESMTP id 77A445589 for ; Wed, 18 Jan 2017 08:26:49 +0100 (CET) Received: from unknown [12.187.104.26] (EHLO webmail.solarflare.com) by nbfkord-smmo03.seg.att.com(mxl_mta-7.2.4-7) with ESMTP id 9b81f785.2b63674b1940.2866671.00-2467.5862561.nbfkord-smmo03.seg.att.com (envelope-from ); Wed, 18 Jan 2017 07:26:49 +0000 (UTC) X-MXL-Hash: 587f18b94eca15c3-e86a6fc0c3b91a150c34c9a87a3536d6cf6853c5 Received: from unknown [12.187.104.26] (EHLO webmail.solarflare.com) by nbfkord-smmo03.seg.att.com(mxl_mta-7.2.4-7) over TLS secured channel with ESMTP id 7b81f785.0.2866669.00-2357.5862553.nbfkord-smmo03.seg.att.com (envelope-from ); Wed, 18 Jan 2017 07:26:48 +0000 (UTC) X-MXL-Hash: 587f18b8733bef02-0973356e38ea4fa0b6efabd5daf5095af98e0e54 Received: from ocex03.SolarFlarecom.com (10.20.40.36) by ocex03.SolarFlarecom.com (10.20.40.36) with Microsoft SMTP Server (TLS) id 15.0.1044.25; Tue, 17 Jan 2017 23:26:44 -0800 Received: from opal.uk.solarflarecom.com (10.17.10.1) by ocex03.SolarFlarecom.com (10.20.40.36) with Microsoft SMTP Server (TLS) id 15.0.1044.25 via Frontend Transport; Tue, 17 Jan 2017 23:26:44 -0800 Received: from uklogin.uk.solarflarecom.com (uklogin.uk.solarflarecom.com [10.17.10.10]) by opal.uk.solarflarecom.com (8.13.8/8.13.8) with ESMTP id v0I7QgXh026192; Wed, 18 Jan 2017 07:26:43 GMT Received: from uklogin.uk.solarflarecom.com (localhost.localdomain [127.0.0.1]) by uklogin.uk.solarflarecom.com (8.13.8/8.13.8) with ESMTP id v0I7QgA0030843; Wed, 18 Jan 2017 07:26:42 GMT From: Andrew Rybchenko To: CC: Reshma Pattan Date: Wed, 18 Jan 2017 07:26:08 +0000 Message-ID: <1484724368-30769-1-git-send-email-arybchenko@solarflare.com> X-Mailer: git-send-email 1.8.2.3 MIME-Version: 1.0 Content-Type: text/plain X-AnalysisOut: [v=2.1 cv=HuVwbhnS c=1 sm=1 tr=0 a=8BlWFWvVlq5taO8ncb8nKg==] X-AnalysisOut: [:17 a=IgFoBzBjUZAA:10 a=zRKbQ67AAAAA:8 a=Rt5jYdoEXt8THZmpu] X-AnalysisOut: [cYA:9 a=PA03WX8tBzeizutn5_OT:22] X-Spam: [F=0.5665929502; CM=0.500; S=0.566(2015072901)] X-MAIL-FROM: X-SOURCE-IP: [12.187.104.26] Subject: [dpdk-dev] [PATCH] pdump: fix nb_rx_q may be used uninitialized warning X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Jan 2017 07:26:49 -0000 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 5968683..a580a6a 100644 --- a/lib/librte_pdump/rte_pdump.c +++ b/lib/librte_pdump/rte_pdump.c @@ -337,7 +337,7 @@ struct pdump_response { 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; -- 1.8.2.3