[dpdk-dev] [PATCH v1] vhost: slot_idx needs to be initialised to fix gcc compile error

2020-11-04 Thread Conor Walsh
When DPDK is compiled with gcc < 9 with the optimization level set to 1 gcc sees slot_idx as possibly being uninitialised. To correct this error slot_idx has been initialised to 0. Signed-off-by: Conor Walsh --- lib/librte_vhost/virtio_net.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

Re: [dpdk-dev] [PATCH v1] vhost: slot_idx needs to be initialised to fix gcc compile error

2020-11-04 Thread Maxime Coquelin
Hi Conor, On 11/4/20 6:02 PM, Conor Walsh wrote: > When DPDK is compiled with gcc < 9 with the optimization level set to 1 > gcc sees slot_idx as possibly being uninitialised. To correct this error > slot_idx has been initialised to 0. > > Signed-off-by: Conor Walsh > --- > lib/librte_vhost/vir