Bug 632707 - fix kvm build warnings and enable -Werror
Summary: fix kvm build warnings and enable -Werror
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: kvm
Version: 5.6
Hardware: All
OS: Linux
Target Milestone: beta
: ---
Assignee: Eduardo Habkost
QA Contact: Virtualization Bugs
Depends On:
Blocks: Rhel5KvmTier2
TreeView+ depends on / blocked
Reported: 2010-09-10 19:02 UTC by Eduardo Habkost
Modified: 2011-01-13 23:37 UTC (History)
5 users (show)

Fixed In Version: kvm-83-211.el5
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2011-01-13 23:37:30 UTC

Attachments (Terms of Use)

System ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2011:0028 normal SHIPPED_LIVE Low: kvm security and bug fix update 2011-01-13 11:03:39 UTC

Description Eduardo Habkost 2010-09-10 19:02:47 UTC
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


Comment 16 errata-xmlrpc 2011-01-13 23:37:30 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.