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:
parent
bf4883caff
commit
ce3ae1b084
@ -433,14 +433,17 @@ qemuProcessHandleWatchdog(qemuMonitorPtr mon ATTRIBUTE_UNUSED,
|
||||
*/
|
||||
virDomainObjRef(vm);
|
||||
if (virThreadPoolSendJob(driver->workerPool, wdEvent) < 0) {
|
||||
virDomainObjUnref(vm);
|
||||
if (virDomainObjUnref(vm) < 0)
|
||||
vm = NULL;
|
||||
VIR_FREE(wdEvent);
|
||||
}
|
||||
} else
|
||||
} else {
|
||||
virReportOOMError();
|
||||
}
|
||||
}
|
||||
|
||||
virDomainObjUnlock(vm);
|
||||
if (vm)
|
||||
virDomainObjUnlock(vm);
|
||||
|
||||
if (watchdogEvent || lifecycleEvent) {
|
||||
qemuDriverLock(driver);
|
||||
|
Loading…
x
Reference in New Issue
Block a user