Skip to contentSkip to conversation

Compiler warning fixes for libvduse

PATCH Superseded Marcel Holtmann 1 participant 1 message Dec 19, 2022

v1 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

cover Compiler warning fixes for libvduse

When using libvduse library in an external project it would be good if it can cope with various different compiler settings, this fixes two obvious ones similar to the patches for libvhost-user.

It also contains a 3rd one, that is marked as RFC since I have no idea what is correct here. From the structures point of view the assignment that is done makes no sense to me. I might have to dig into specification to figure it out or it better be commented accordingly to tell the compiler that it got this part wrong.

Marcel Holtmann (3):
libvduse: Provide _GNU_SOURCE when compiling outside of QEMU
libvduse: Switch to unsigned int for inuse field in struct VduseVirtq
libvduse: Fix assignment in vring_set_avail_event

 subprojects/libvduse/libvduse.c | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)
Signature · 1 line
2.38.1