[PATCH 0/7] Various compiler warning fixes for libvhost-user

Marcel Holtmann posted 7 patches 1 year, 4 months ago
Only 0 patches received!
subprojects/libvhost-user/libvhost-user.c | 31 ++++++++++++++---------
subprojects/libvhost-user/libvhost-user.h |  2 +-
2 files changed, 20 insertions(+), 13 deletions(-)
[PATCH 0/7] Various compiler warning fixes for libvhost-user
Posted by Marcel Holtmann 1 year, 4 months ago
The libvhost-user library is also useful for external usage outside of
QEMU and thus it would be nice if the two files libvhost-user.[ch] could
be just copied and used. However due to different compiler settings, a
lot of manual fixups are needed. This is the first attempt at some
obvious fixes that can be done without any harm to the code and its
readabilty.

Marcel Holtmann (7):
  libvhost-user: Provide _GNU_SOURCE when compiling outside of QEMU
  libvhost-user: Replace typeof with __typeof__
  libvhost-user: Cast rc variable to avoid compiler warning
  libvhost-user: Use unsigned int i for some for-loop iterations
  libvhost-user: Declare uffdio_register early to make it C90 compliant
  libvhost-user: Change dev->postcopy_ufd assignment to make it C90 compliant
  libvhost-user: Switch to unsigned int for inuse field in struct VuVirtq

 subprojects/libvhost-user/libvhost-user.c | 31 ++++++++++++++---------
 subprojects/libvhost-user/libvhost-user.h |  2 +-
 2 files changed, 20 insertions(+), 13 deletions(-)

-- 
2.38.1