* [PATCH v1] app/testpmd: fix flex item compilation error
@ 2023-02-21 9:36 Rongwei Liu
0 siblings, 0 replies; only message in thread
From: Rongwei Liu @ 2023-02-21 9:36 UTC (permalink / raw)
To: dev, matan, viacheslavo, orika, thomas
Cc: rasland, stable, Aman Singh, Yuying Zhang
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.
Fixes: c8e25fbf1440 ("ethdev: add flow flex modify")
Cc: stable@dpdk.org
Signed-off-by: Rongwei Liu <rongweil@nvidia.com>
---
app/test-pmd/cmdline_flow.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/app/test-pmd/cmdline_flow.c b/app/test-pmd/cmdline_flow.c
index f1991a5a9a..9309607f11 100644
--- a/app/test-pmd/cmdline_flow.c
+++ b/app/test-pmd/cmdline_flow.c
@@ -8992,7 +8992,7 @@ parse_vc_modify_field_level(struct context *ctx, const struct token *token,
unsigned int size)
{
struct rte_flow_action_modify_field *action;
- struct flex_item *fp;
+ struct flex_item *fp = NULL;
uint32_t val;
struct buffer *out = buf;
char *end;
--
2.27.0
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-02-21 9:37 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-21 9:36 [PATCH v1] app/testpmd: fix flex item compilation error Rongwei Liu
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).