mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-27 04:13:53 -06:00
qapi: fix flat union on uncovered branches conditionals
Default branches variant should use the member conditional.
This fixes compilation with --disable-replication.
Fixes: 335d10cd8e
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20181217204046.14861-1-marcandre.lureau@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
[Long line wrapped]
Signed-off-by: Markus Armbruster <armbru@redhat.com>
This commit is contained in:
parent
fb06411210
commit
ce1a1aec47
1 changed files with 2 additions and 1 deletions
|
@ -1460,7 +1460,8 @@ class QAPISchemaObjectTypeVariants(object):
|
|||
cases = set([v.name for v in self.variants])
|
||||
for m in self.tag_member.type.members:
|
||||
if m.name not in cases:
|
||||
v = QAPISchemaObjectTypeVariant(m.name, 'q_empty')
|
||||
v = QAPISchemaObjectTypeVariant(m.name, 'q_empty',
|
||||
m.ifcond)
|
||||
v.set_owner(self.tag_member.owner)
|
||||
self.variants.append(v)
|
||||
for v in self.variants:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue