Re: [Qemu-devel] [PATCH v6 10/12] qapi: Correct error for union branch 'kind' clash

2015-10-03 Thread Eric Blake
On 10/01/2015 10:31 PM, Eric Blake wrote: > The error message when a simple union or alternate contains a > branch named 'kind' is ugly, because it is tied to the Schema > member named 'type'. A future patch will fix the generated C > to match QMP, but until that point, we can hack things with > a

[Qemu-devel] [PATCH v6 10/12] qapi: Correct error for union branch 'kind' clash

2015-10-01 Thread Eric Blake
The error message when a simple union or alternate contains a branch named 'kind' is ugly, because it is tied to the Schema member named 'type'. A future patch will fix the generated C to match QMP, but until that point, we can hack things with a temporary subclass to make the error message reflec