qemu/qemu/4e37e05f3663521fcffbb8eb9e41cf1e3441bc0b
qom/object.c: improve duplicate class property detection assert()
Introduce an intermediary boolean prop_already_exists into object_class_property_add()
so that it is obvious to a developer if they inadvertantly introduce a duplicate
class property:
qemu-system-x86_64: ../qom/object.c:1417: object_class_property_add:
Assertion `!prop_already_exists' failed.
Signed-off-by: Mark Cave-Ayland <mark.caveayland@nutanix.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Message-ID: <20260921113559.1299740-2-mark.caveayland@nutanix.com>
1 file changed