summaryrefslogtreecommitdiffstats
path: root/audio/dsoundaudio.c
diff options
context:
space:
mode:
authorEric Blake <eblake@redhat.com>2016-02-17 23:48:17 -0700
committerTimothy Pearson <tpearson@raptorengineering.com>2019-11-29 19:45:30 -0600
commit7926f374f314eb5d1cb9213c99f3ccd29c15a7ea (patch)
tree4c591476cdb2c3fd319fe407ba380e72df35e23f /audio/dsoundaudio.c
parent6c5dc2fd9a9065a7e5738a5b06e9ce1f51b0ef55 (diff)
downloadhqemu-7926f374f314eb5d1cb9213c99f3ccd29c15a7ea.zip
hqemu-7926f374f314eb5d1cb9213c99f3ccd29c15a7ea.tar.gz
qapi: Forbid 'any' inside an alternate
The whole point of an alternate is to allow some type-safety while still accepting more than one JSON type. Meanwhile, the 'any' type exists to bypass type-safety altogether. The two are incompatible: you can't accept every type, and still tell which branch of the alternate to use for the parse; fix this to give a sane error instead of a Python stack trace. Note that other types that can't be alternate members are caught earlier, by check_type(). Signed-off-by: Eric Blake <eblake@redhat.com> Message-Id: <1455778109-6278-4-git-send-email-eblake@redhat.com> [Commit message tweaked] Signed-off-by: Markus Armbruster <armbru@redhat.com>
Diffstat (limited to 'audio/dsoundaudio.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud