Re: [Qemu-devel] [PATCH v3 1/2] qapi: allow empty branches in flat unions

2018-06-01 Thread Eric Blake
On 05/30/2018 11:37 AM, Anton Nefedov wrote: It often happens that just a few discriminator values imply extra data in a flat union. Existing checks did not make possible to leave other values uncovered. Such cases had to be worked around by either stating a dummy (empty) type or introducing anot

[Qemu-devel] [PATCH v3 1/2] qapi: allow empty branches in flat unions

2018-05-30 Thread Anton Nefedov
It often happens that just a few discriminator values imply extra data in a flat union. Existing checks did not make possible to leave other values uncovered. Such cases had to be worked around by either stating a dummy (empty) type or introducing another (subset) discriminator enumeration. Both o