From: Peter Krempa Date: Fri, 20 Sep 2024 07:59:14 +0000 (+0200) Subject: qemuDomainObjWait: Annotate with G_GNUC_WARN_UNUSED_RESULT X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=2e325804cc73557d033803a6feeba58b82c1313b;p=libvirt.git qemuDomainObjWait: Annotate with G_GNUC_WARN_UNUSED_RESULT Callers must handle the return value of this function as the VM might have died. Add compiler annotation to force it. Signed-off-by: Peter Krempa Reviewed-by: Pavel Hrdina --- diff --git a/src/qemu/qemu_domain.h b/src/qemu/qemu_domain.h index ba357af8f4..c29ecdf238 100644 --- a/src/qemu/qemu_domain.h +++ b/src/qemu/qemu_domain.h @@ -1132,7 +1132,8 @@ qemuDomainRemoveLogs(virQEMUDriver *driver, const char *name); int -qemuDomainObjWait(virDomainObj *vm); +qemuDomainObjWait(virDomainObj *vm) + G_GNUC_WARN_UNUSED_RESULT; bool qemuDomainObjIsActive(virDomainObj *vm);