1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2025-03-07 17:28:15 +00:00

build: fix qemu build failure in previous patch

This last minute addition caused a build failure

cc1: warnings being treated as errors
qemu/qemu_process.c: In function 'qemuProcessHandleWatchdog':
qemu/qemu_process.c:436:34: error: ignoring return value of 'virDomainObjUnref', declared with attribute warn_unused_result [-Wunused-result]
make[3]: *** [libvirt_driver_qemu_la-qemu_process.lo] Error 1
This commit is contained in:
Daniel P. Berrange 2011-04-18 12:41:23 +01:00 committed by Eric Blake
parent bf4883caff
commit ce3ae1b084

View File

@ -433,13 +433,16 @@ qemuProcessHandleWatchdog(qemuMonitorPtr mon ATTRIBUTE_UNUSED,
*/ */
virDomainObjRef(vm); virDomainObjRef(vm);
if (virThreadPoolSendJob(driver->workerPool, wdEvent) < 0) { if (virThreadPoolSendJob(driver->workerPool, wdEvent) < 0) {
virDomainObjUnref(vm); if (virDomainObjUnref(vm) < 0)
vm = NULL;
VIR_FREE(wdEvent); VIR_FREE(wdEvent);
} }
} else } else {
virReportOOMError(); virReportOOMError();
} }
}
if (vm)
virDomainObjUnlock(vm); virDomainObjUnlock(vm);
if (watchdogEvent || lifecycleEvent) { if (watchdogEvent || lifecycleEvent) {