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 <pkrempa(a)redhat.com>
---
src/qemu/qemu_domain.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
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);
--
2.46.0