On 02/16/2016 09:08 AM, Markus Armbruster wrote:
> Eric Blake writes:
>
>> Empty unions serve no purpose, and while we compile with gcc
>> which permits them, strict C99 forbids them. We could inject
>> a dummy member (and in fact, we do for empty structs), but while
>
> gen_variants() injects
Eric Blake writes:
> Empty unions serve no purpose, and while we compile with gcc
> which permits them, strict C99 forbids them. We could inject
> a dummy member (and in fact, we do for empty structs), but while
gen_variants() injects void *data.
> empty structs make sense in qapi,
Suggest t
Empty unions serve no purpose, and while we compile with gcc
which permits them, strict C99 forbids them. We could inject
a dummy member (and in fact, we do for empty structs), but while
empty structs make sense in qapi, empty unions don't add any
expressiveness to the QMP language. So prohibit t