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

2018-05-29 Thread Eric Blake
On 05/29/2018 11:41 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 v2 1/2] qapi: allow empty branches in flat unions

2018-05-29 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