Re: [PATCH v2] vhost: compilation fix for GCC-12

2022-09-04 Thread Bagas Sanjaya
On Fri, Sep 02, 2022 at 06:11:52PM +0530, Amit Prakash Shukla wrote: > ../lib/vhost/virtio_net.c:941:35: error: > 'buf_vec[0].buf_len' may be used uninitialized > [-Werror=maybe-uninitialized] > 941 | buf_len = buf_vec[vec_idx].buf_len; > |

RE: [EXT] Re: [PATCH v2] vhost: compilation fix for GCC-12

2022-09-02 Thread Amit Prakash Shukla
ect: [EXT] Re: [PATCH v2] vhost: compilation fix for GCC-12 > > External Email > > -- > On Fri, Sep 02, 2022 at 06:11:52PM +0530, Amit Prakash Shukla wrote: > > ../lib/vhost/virtio_net.c:941:35: error: >

[PATCH v2] vhost: compilation fix for GCC-12

2022-09-02 Thread Amit Prakash Shukla
../lib/vhost/virtio_net.c:941:35: error: 'buf_vec[0].buf_len' may be used uninitialized [-Werror=maybe-uninitialized] 941 | buf_len = buf_vec[vec_idx].buf_len; | ^~~~ ../lib/vhost/virtio_net.c: In function 'virtio