Re: [dpdk-dev] [PATCH v2] net/txgbe: return changed to fix gcc compile error

2020-11-12 Thread Ferruh Yigit
On 11/11/2020 3:39 PM, Conor Walsh wrote: When DPDK is compiled with gcc 7.5 with the optimization level set to 1 gcc sees the offset variable in txgbe_ethdev.c as possibly being uninitialised. To correct this the final return statement in txgbe_get_offset_by_id was simplified to return -1. Sign

[dpdk-dev] [PATCH v2] net/txgbe: return changed to fix gcc compile error

2020-11-11 Thread Conor Walsh
When DPDK is compiled with gcc 7.5 with the optimization level set to 1 gcc sees the offset variable in txgbe_ethdev.c as possibly being uninitialised. To correct this the final return statement in txgbe_get_offset_by_id was simplified to return -1. Signed-off-by: Conor Walsh --- drivers/net/txg