* [PATCH] lpm: fix maybe-uninitialized warning when using LTO during compilation @ 2014-12-02 0:39 Dennis Marinus [not found] ` <1417480746-25902-1-git-send-email-dmarinus-vV1OtcyAfmbQT0dZR+AlfA@public.gmane.org> 0 siblings, 1 reply; 3+ messages in thread From: Dennis Marinus @ 2014-12-02 0:39 UTC (permalink / raw) To: dev-VfR2kkLFssw This patch fixes a maybe-uninitialized warning when compiling DPDK with GCC 4.9 + Link Time Optimization. Signed-off-by: Dennis Marinus <dmarinus-vV1OtcyAfmbQT0dZR+AlfA@public.gmane.org> --- 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 ^ permalink raw reply related [flat|nested] 3+ messages in thread
[parent not found: <1417480746-25902-1-git-send-email-dmarinus-vV1OtcyAfmbQT0dZR+AlfA@public.gmane.org>]
* Re: [PATCH] lpm: fix maybe-uninitialized warning when using LTO during compilation [not found] ` <1417480746-25902-1-git-send-email-dmarinus-vV1OtcyAfmbQT0dZR+AlfA@public.gmane.org> @ 2014-12-02 9:16 ` Bruce Richardson 2014-12-02 11:34 ` Thomas Monjalon 0 siblings, 1 reply; 3+ messages in thread From: Bruce Richardson @ 2014-12-02 9:16 UTC (permalink / raw) To: Dennis Marinus; +Cc: dev-VfR2kkLFssw On Mon, Dec 01, 2014 at 04:39:06PM -0800, Dennis Marinus wrote: > This patch fixes a maybe-uninitialized warning when compiling DPDK with > GCC 4.9 + Link Time Optimization. > > Signed-off-by: Dennis Marinus <dmarinus-vV1OtcyAfmbQT0dZR+AlfA@public.gmane.org> Acked-by: Bruce Richardson <bruce.richardson-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> > --- > 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 > ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] lpm: fix maybe-uninitialized warning when using LTO during compilation 2014-12-02 9:16 ` Bruce Richardson @ 2014-12-02 11:34 ` Thomas Monjalon 0 siblings, 0 replies; 3+ messages in thread From: Thomas Monjalon @ 2014-12-02 11:34 UTC (permalink / raw) To: Dennis Marinus; +Cc: dev-VfR2kkLFssw > > This patch fixes a maybe-uninitialized warning when compiling DPDK with > > GCC 4.9 + Link Time Optimization. > > > > Signed-off-by: Dennis Marinus <dmarinus-vV1OtcyAfmbQT0dZR+AlfA@public.gmane.org> > > Acked-by: Bruce Richardson <bruce.richardson-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> Applied Thanks -- Thomas ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-12-02 11:34 UTC | newest] Thread overview: 3+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2014-12-02 0:39 [PATCH] lpm: fix maybe-uninitialized warning when using LTO during compilation Dennis Marinus [not found] ` <1417480746-25902-1-git-send-email-dmarinus-vV1OtcyAfmbQT0dZR+AlfA@public.gmane.org> 2014-12-02 9:16 ` Bruce Richardson 2014-12-02 11:34 ` Thomas Monjalon
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).