]> xenbits.xensource.com Git - libvirt.git/commitdiff
qemuDomainObjWait: Annotate with G_GNUC_WARN_UNUSED_RESULT
authorPeter Krempa <pkrempa@redhat.com>
Fri, 20 Sep 2024 07:59:14 +0000 (09:59 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 9 Oct 2024 13:22:00 +0000 (15:22 +0200)
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@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
src/qemu/qemu_domain.h

index ba357af8f4b6a54e1c59fce0895907a5c57440bd..c29ecdf23858d6528fbce48e6473c9c20cd89a12 100644 (file)
@@ -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);