mirror of
https://github.com/qemu/qemu.git
synced 2024-12-13 22:43:32 +08:00
0ced9531f1
Absent flat union branches default to the empty struct (since commit
800877bb16
"qapi: allow empty branches in flat unions"). But an
attempt to omit all of them is rejected with "Union 'FOO' has no
branches". Harmless oddity, but it's easy to avoid, so do that.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-Id: <20190913201349.24332-11-armbru@redhat.com>
[Commit message typo fixed]
3 lines
66 B
JSON
3 lines
66 B
JSON
# simple unions cannot be empty
|
|
{ 'union': 'Union', 'data': { } }
|