DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] lpm: fix maybe-uninitialized warning when using LTO during compilation
@ 2014-12-02  0:39 Dennis Marinus
  2014-12-02  9:16 ` Bruce Richardson
  0 siblings, 1 reply; 3+ messages in thread
From: Dennis Marinus @ 2014-12-02  0:39 UTC (permalink / raw)
  To: dev

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [dpdk-dev] [PATCH] lpm: fix maybe-uninitialized warning when using LTO during compilation
  2014-12-02  0:39 [dpdk-dev] [PATCH] lpm: fix maybe-uninitialized warning when using LTO during compilation Dennis Marinus
@ 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

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@amazon.com>

Acked-by: Bruce Richardson <bruce.richardson@intel.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
> 

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [dpdk-dev] [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

> > 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>

Applied

Thanks
-- 
Thomas

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-12-02 11:35 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 [dpdk-dev] [PATCH] lpm: fix maybe-uninitialized warning when using LTO during compilation Dennis Marinus
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).