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: [email protected]
>
> Reported-by: gaodaxue <[email protected]>
> Signed-off-by: Rongwei Liu <[email protected]>
> ---
> - struct flex_item *fp;
> + struct flex_item *fp = NULL;
Applied, thanks.