Red Hat Bugzilla – Bug 632707
fix kvm build warnings and enable -Werror
Last modified: 2011-01-13 18:37:30 EST
There are many warnings on the current build of KVM, and this can make us miss other important warnings.
posix-aio-compat.c:185: warning: 'return' with a value, in function returning void
/builddir/build/BUILD/kvm-83-maint-snapshot-20090205/qemu/hw/virtio-net.c:283: warning: format '%d' expects type 'int', but argument 3 has type 'size_t'
/builddir/build/BUILD/kvm-83-maint-snapshot-20090205/qemu/hw/virtio-net.c:283: warning: format '%zd' expects type 'signed size_t', but argument 6 has type 'int'
main.c:494: warning: ignoring return value of 'write', declared with attribute warn_unused_result
kvmtrace.c:311: warning: ignoring return value of 'ftruncate', declared with attribute warn_unused_result
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.