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

2018-06-18 Thread Markus Armbruster
Anton Nefedov writes: > 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) di

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

2018-06-18 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