table: fix maybe-uninitialized variable with gcc lto
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>
This commit is contained in:
parent
c1aa5e44e6
commit
e77339f400
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user