> -----Original Message----- > From: Wei Huang <wei.hu...@intel.com> > Sent: 2022年3月16日 15:27 > To: dev@dpdk.org; tho...@monjalon.net; Xu, Rosen <rosen...@intel.com>; > nipun.gu...@nxp.com; hemant.agra...@nxp.com > Cc: sta...@dpdk.org; Zhang, Tianfei <tianfei.zh...@intel.com>; Zhang, Qi Z > <qi.z.zh...@intel.com>; Yigit, Ferruh <ferruh.yi...@intel.com>; Huang, Wei > <wei.hu...@intel.com> > Subject: [PATCH v1] raw/ifpga: initialize variable to avoid compile error > > Compile failed with cflag optimization=1 on Ubuntu20.04 with GCC10.3, it > reported vendor_id and dev_id may be used uninitialized in function > ifpga_rawdev_fill_info(). > Actually it's not the truth, the variables are initialized in function > ifpga_get_dev_vendor_id(). To avoid such compile error, the variables are > initialized when they are defined. > > Signed-off-by: Wei Huang <wei.hu...@intel.com> > Acked-by: Tianfei Zhang <tianfei.zh...@intel.com> > Acked-by: Rosen Xu <rosen...@intel.com> > ---
Tested-by: Daxue Gao <daxuex....@intel.com>