From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id F4153DE0 for ; Tue, 2 Dec 2014 10:16:48 +0100 (CET) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga101.fm.intel.com with ESMTP; 02 Dec 2014 01:16:47 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.97,862,1389772800"; d="scan'208";a="423937099" Received: from bricha3-mobl3.ger.corp.intel.com ([10.243.20.11]) by FMSMGA003.fm.intel.com with SMTP; 02 Dec 2014 01:06:34 -0800 Received: by (sSMTP sendmail emulation); Tue, 02 Dec 2014 09:16:45 +0025 Date: Tue, 2 Dec 2014 09:16:44 +0000 From: Bruce Richardson To: Dennis Marinus Message-ID: <20141202091644.GA8340@bricha3-MOBL3> References: <1417480746-25902-1-git-send-email-dmarinus@amazon.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1417480746-25902-1-git-send-email-dmarinus@amazon.com> Organization: Intel Shannon Ltd. User-Agent: Mutt/1.5.23 (2014-03-12) Cc: dev@dpdk.org Subject: Re: [dpdk-dev] [PATCH] lpm: fix maybe-uninitialized warning when using LTO during compilation X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Dec 2014 09:16:49 -0000 On Mon, Dec 01, 2014 at 04:39:06PM -0800, Dennis Marinus wrote: > This patch fixes a maybe-uninitialized warning when compiling DPDK with > GCC 4.9 + Link Time Optimization. > > Signed-off-by: Dennis Marinus Acked-by: Bruce Richardson > --- > lib/librte_table/rte_table_lpm.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/lib/librte_table/rte_table_lpm.c b/lib/librte_table/rte_table_lpm.c > index 59f87bb..cf92619 100644 > --- a/lib/librte_table/rte_table_lpm.c > +++ b/lib/librte_table/rte_table_lpm.c > @@ -185,7 +185,7 @@ rte_table_lpm_entry_add( > struct rte_table_lpm_key *ip_prefix = (struct rte_table_lpm_key *) key; > uint32_t nht_pos, nht_pos0_valid; > int status; > - uint8_t nht_pos0; > + uint8_t nht_pos0 = 0; > > /* Check input parameters */ > if (lpm == NULL) { > -- > 2.1.2.AMZN >