aboutsummaryrefslogtreecommitdiff
path: root/iothread.c
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2015-07-31 10:30:04 +0200
committerMarkus Armbruster <armbru@redhat.com>2015-09-04 15:47:13 +0200
commit0f61af3eb396ae163cd1572ce12e05f5d08d7c15 (patch)
tree6bf37b6d51adf1446d7cd4f1f22beb061e380f5a /iothread.c
parent5aa05d3f72e556752167f7005d6a3dea0f4432c5 (diff)
downloadqemu-0f61af3eb396ae163cd1572ce12e05f5d08d7c15.zip
qemu-0f61af3eb396ae163cd1572ce12e05f5d08d7c15.tar.gz
qemu-0f61af3eb396ae163cd1572ce12e05f5d08d7c15.tar.bz2
qapi: Fix generated code when flat union has member 'kind'
A flat union's tag member gets renamed to 'kind' in the generated code. Breaks when another member named 'kind' exists. Example, adapted from qapi-schema-test.json: { 'struct': 'UserDefUnionBase', 'data': { 'kind': 'str', 'enum1': 'EnumOne' } } We generate: struct UserDefFlatUnion { EnumOne kind; union { void *data; UserDefA *value1; UserDefB *value2; UserDefB *value3; }; char *kind; }; Kill the silly rename. Reported-by: Eric Blake <eblake@redhat.com> Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'iothread.c')
0 files changed, 0 insertions, 0 deletions