• E
    build: enforce reference count checking · 72d4ff5b
    Eric Blake 提交于
    Add the compiler attribute to ensure we don't introduce any more
    ref bugs like were just patched in commit 9741f346, then explicitly
    mark the remaining places in code that are safe.
    
    * src/qemu/qemu_monitor.h (qemuMonitorUnref): Mark
    ATTRIBUTE_RETURN_CHECK.
    * src/conf/domain_conf.h (virDomainObjUnref): Likewise.
    * src/conf/domain_conf.c (virDomainObjParseXML)
    (virDomainLoadStatus): Fix offenders.
    * src/openvz/openvz_conf.c (openvzLoadDomains): Likewise.
    * src/vmware/vmware_conf.c (vmwareLoadDomains): Likewise.
    * src/qemu/qemu_domain.c (qemuDomainObjBeginJob)
    (qemuDomainObjBeginJobWithDriver)
    (qemuDomainObjExitRemoteWithDriver): Likewise.
    * src/qemu/qemu_monitor.c (QEMU_MONITOR_CALLBACK): Likewise.
    Suggested by Daniel P. Berrange.
    72d4ff5b
qemu_monitor.h 16.2 KB