From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp-fw-4101.amazon.com (smtp-fw-4101.amazon.com [72.21.198.25]) by dpdk.org (Postfix) with ESMTP id 1644518F for ; Tue, 2 Dec 2014 01:39:19 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1417480760; x=1449016760; h=from:to:subject:date:message-id; bh=b47O4/dOVsfZzj7/vvulBxLR/HN0IPOR05LBCBR15qg=; b=ogHPrA3iR77gKZezP7T0vvYc6O79HNIfuu29+2UVre0NUVcjMuyYqECN 4cfOOIsXlS3ru3v2FVw30l9X0QOAS+vJLhgEBKPAzC8reC8/+KLeP0tOm ywzmGPmRdUw/mokc9nwT4RVvo51wKVhH74AzXaww5eikvxamfDupyFK8n M=; X-IronPort-AV: E=Sophos;i="5.07,497,1413244800"; d="scan'208";a="173457285" Received: from email-inbound-relay-71001.iad55.amazon.com ([10.217.225.210]) by smtp-border-fw-out-4101.iad4.amazon.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 02 Dec 2014 00:39:18 +0000 Received: from dmarinus.desktop.amazon.com (iad1-ws-svc-lb91-vlan3.amazon.com [10.0.103.150]) by email-inbound-relay-71001.iad55.amazon.com (8.14.7/8.14.7) with ESMTP id sB20dIOK029562 for ; Tue, 2 Dec 2014 00:39:18 GMT From: Dennis Marinus To: dev@dpdk.org Date: Mon, 1 Dec 2014 16:39:06 -0800 Message-Id: <1417480746-25902-1-git-send-email-dmarinus@amazon.com> X-Mailer: git-send-email 2.1.2.AMZN Subject: [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 00:39:20 -0000 This patch fixes a maybe-uninitialized warning when compiling DPDK with GCC 4.9 + Link Time Optimization. Signed-off-by: Dennis Marinus --- 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