lpm: fix maybe-uninitialized warning when using LTO during compilation
PATCH 1/1 lpm: fix maybe-uninitialized warning when using LTO during compilation
This patch fixes a maybe-uninitialized warning when compiling DPDK with GCC 4.9 + Link Time Optimization.
Signed-off-by Dennis Marinus <[email protected]>
--- lib/librte_table/rte_table_lpm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
lib/librte_table/rte_table_lpm.c +1 -1
@@ -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 ) {
Signature · 1 line
2.1.2.AMZN
A message that is not in the archive (sent off-list or not yet received): 1417480746-25902-1-git-send-email-dmarinus-vV1OtcyAfmbQT0dZR+AlfA@public.gmane.org
Bruce Richardson
Acked-byQuoted 4 lines · Dennis Marinus
This patch fixes a maybe-uninitialized warning when compiling DPDK with GCC 4.9 + Link Time Optimization.
Signed-off-by Dennis Marinus <[email protected]>
Acked-by Bruce Richardson <[email protected]>
Quoted 20 lines
--- lib/librte_table/rte_table_lpm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)lib/librte_table/rte_table_lpm.c +1
-1@@ -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 ) {Signature · 1 line
2.1.2.AMZN
Thomas Monjalon
AppliedQuoted 6 lines
Quoted 4 lines
This patch fixes a maybe-uninitialized warning when compiling DPDK with GCC 4.9 + Link Time Optimization.
Signed-off-by Dennis Marinus <[email protected]>Acked-by Bruce Richardson <[email protected]>
Applied
Thanks
Signature · 1 line
Thomas