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: sta...@dpdk.org > > Reported-by: gaodaxue <daxuex....@intel.com> > Signed-off-by: Rongwei Liu <rongw...@nvidia.com> > --- > - struct flex_item *fp; > + struct flex_item *fp = NULL; Applied, thanks.