From: Dennis Marinus <dmarinus@amazon.com>
To: dev@dpdk.org
Subject: [dpdk-dev] [PATCH] lpm: fix maybe-uninitialized warning when using LTO during compilation
Date: Mon, 1 Dec 2014 16:39:06 -0800 [thread overview]
Message-ID: <1417480746-25902-1-git-send-email-dmarinus@amazon.com> (raw)
This patch fixes a maybe-uninitialized warning when compiling DPDK with
GCC 4.9 + Link Time Optimization.
Signed-off-by: Dennis Marinus <dmarinus@amazon.com>
---
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
next reply other threads:[~2014-12-02 0:39 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-02 0:39 Dennis Marinus [this message]
2014-12-02 9:16 ` Bruce Richardson
2014-12-02 11:34 ` Thomas Monjalon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1417480746-25902-1-git-send-email-dmarinus@amazon.com \
--to=dmarinus@amazon.com \
--cc=dev@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).