From 2e325804cc73557d033803a6feeba58b82c1313b Mon Sep 17 00:00:00 2001 From: Peter Krempa Date: Fri, 20 Sep 2024 09:59:14 +0200 Subject: [PATCH] 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 --- 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.39.5