DPDK patches and discussions
 help / color / mirror / Atom feed
From: Bruce Richardson <bruce.richardson@intel.com>
To: Dennis Marinus <dmarinus@amazon.com>
Cc: dev@dpdk.org
Subject: Re: [dpdk-dev] [PATCH] lpm: fix maybe-uninitialized warning when using LTO during compilation
Date: Tue, 2 Dec 2014 09:16:44 +0000	[thread overview]
Message-ID: <20141202091644.GA8340@bricha3-MOBL3> (raw)
In-Reply-To: <1417480746-25902-1-git-send-email-dmarinus@amazon.com>

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
> 

  reply	other threads:[~2014-12-02  9:16 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-02  0:39 Dennis Marinus
2014-12-02  9:16 ` Bruce Richardson [this message]
2014-12-02 11:34   ` Thomas Monjalon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20141202091644.GA8340@bricha3-MOBL3 \
    --to=bruce.richardson@intel.com \
    --cc=dev@dpdk.org \
    --cc=dmarinus@amazon.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).