git.droids-corp.org
/
dpdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c1aa5e4
)
table: fix maybe-uninitialized variable with gcc lto
author
Dennis Marinus
<dmarinus@amazon.com>
Tue, 2 Dec 2014 00:39:06 +0000
(16:39 -0800)
committer
Thomas Monjalon
<thomas.monjalon@6wind.com>
Tue, 2 Dec 2014 11:34:09 +0000
(12:34 +0100)
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>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
lib/librte_table/rte_table_lpm.c
patch
|
blob
|
history
diff --git
a/lib/librte_table/rte_table_lpm.c
b/lib/librte_table/rte_table_lpm.c
index
59f87bb
..
cf92619
100644
(file)
--- 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) {