Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 5 product line. The current stable release is 5.10. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 632707

Summary: fix kvm build warnings and enable -Werror
Product: Red Hat Enterprise Linux 5 Reporter: Eduardo Habkost <ehabkost>
Component: kvmAssignee: Eduardo Habkost <ehabkost>
Status: CLOSED ERRATA QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: low    
Version: 5.6CC: llim, mkenneth, virt-maint, ykaul, ypu
Target Milestone: beta   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: kvm-83-211.el5 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-01-13 23:37:30 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 580948    

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

Version:
kvm-83-196.el5

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.

http://rhn.redhat.com/errata/RHSA-2011-0028.html