From: Thomas Monjalon <thomas@monjalon.net>
To: Rongwei Liu <rongweil@nvidia.com>
Cc: dev@dpdk.org, matan@nvidia.com, viacheslavo@nvidia.com,
orika@nvidia.com, rasland@nvidia.com, stable@dpdk.org,
gaodaxue <daxuex.gao@intel.com>,
Aman Singh <aman.deep.singh@intel.com>,
Yuying Zhang <yuying.zhang@intel.com>
Subject: Re: [PATCH v2] app/testpmd: fix flex item compilation error
Date: Tue, 21 Feb 2023 21:09:34 +0100 [thread overview]
Message-ID: <17114272.5WZRyvrzyv@thomas> (raw)
In-Reply-To: <20230221100201.361765-1-rongweil@nvidia.com>
21/02/2023 11:02, Rongwei Liu:
> When configuring meson with option "--optimization=1", gcc
> complains "maybe-uninitialized" warning and it was treated as
> error since Werror is enabled.
>
> Assign fp to NULL at declaration can avoid this.
That's probably a false positive,
but I'm OK to workaround it this way, especially in a test application.
> Bugzilla ID: 1163
> Fixes: c8e25fbf1440 ("ethdev: add flow flex modify")
> Cc: stable@dpdk.org
>
> Reported-by: gaodaxue <daxuex.gao@intel.com>
> Signed-off-by: Rongwei Liu <rongweil@nvidia.com>
> ---
> - struct flex_item *fp;
> + struct flex_item *fp = NULL;
Applied, thanks.
prev parent reply other threads:[~2023-02-21 20:09 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-21 10:02 Rongwei Liu
2023-02-21 20:09 ` Thomas Monjalon [this message]
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=17114272.5WZRyvrzyv@thomas \
--to=thomas@monjalon.net \
--cc=aman.deep.singh@intel.com \
--cc=daxuex.gao@intel.com \
--cc=dev@dpdk.org \
--cc=matan@nvidia.com \
--cc=orika@nvidia.com \
--cc=rasland@nvidia.com \
--cc=rongweil@nvidia.com \
--cc=stable@dpdk.org \
--cc=viacheslavo@nvidia.com \
--cc=yuying.zhang@intel.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).