1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2025-01-09 01:18:00 +03:00

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 <pkrempa@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
This commit is contained in:
Peter Krempa 2024-09-20 09:59:14 +02:00
parent 93d97d8fa2
commit 2e325804cc

View 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);