Re: [PATCH v2 09/10] libvduse: Switch to unsigned int for inuse field in struct VduseVirtq

2022-12-21 Thread Yongji Xie
On Wed, Dec 21, 2022 at 3:27 AM Marcel Holtmann wrote: > > It seems there is no need to keep the inuse field signed and end up with > compiler warnings for sign-compare. > > CC libvduse.o > libvduse.c: In function ‘vduse_queue_pop’: > libvduse.c:789:19: error: comparison of integer

[PATCH v2 09/10] libvduse: Switch to unsigned int for inuse field in struct VduseVirtq

2022-12-20 Thread Marcel Holtmann
It seems there is no need to keep the inuse field signed and end up with compiler warnings for sign-compare. CC libvduse.o libvduse.c: In function ‘vduse_queue_pop’: libvduse.c:789:19: error: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’