]> xenbits.xensource.com Git - libvirt.git/commit
qemu: fix build error with older platforms
authorEric Blake <eblake@redhat.com>
Thu, 25 Apr 2013 17:22:39 +0000 (11:22 -0600)
committerEric Blake <eblake@redhat.com>
Thu, 25 Apr 2013 17:26:58 +0000 (11:26 -0600)
commitb121584f58c2753a157f46fba8f948b7d005dd83
treef8397fa4569084c8d05ffa832795112888c58f91
parentcaf659a868d01b7b8cffae4ed4f736cd29a1725a
qemu: fix build error with older platforms

Jim Fehlig reported on IRC that older gcc/glibc triggers this warning:

cc1: warnings being treated as errors
qemu/qemu_domain.c: In function 'qemuDomainDefFormatBuf':
qemu/qemu_domain.c:1297: error: declaration of 'remove' shadows a global declaration [-Wshadow]
/usr/include/stdio.h:157: error: shadowed declaration is here [-Wshadow]
make[3]: *** [libvirt_driver_qemu_impl_la-qemu_domain.lo] Error 1

Fix it like we have done in the past (such as commit 2e6322a).

* src/qemu/qemu_domain.c (qemuDomainDefFormatBuf): Avoid shadowing
a function name.

Signed-off-by: Eric Blake <eblake@redhat.com>
src/qemu/qemu_domain.c