Re: [PATCH 08/13] qapi: Assert output visitors see only valid enum values

2020-04-24 Thread Markus Armbruster
Eric Blake writes: > On 4/23/20 11:00 AM, Markus Armbruster wrote: >> output_type_enum() fails when *obj is not a valid value of the enum >> type. Should not happen. Drop the check, along with its unit tests. >> qapi_enum_lookup()'s assertion still guards. >> >> Signed-off-by: Markus

Re: [PATCH 08/13] qapi: Assert output visitors see only valid enum values

2020-04-23 Thread Eric Blake
On 4/23/20 11:00 AM, Markus Armbruster wrote: output_type_enum() fails when *obj is not a valid value of the enum type. Should not happen. Drop the check, along with its unit tests. qapi_enum_lookup()'s assertion still guards. Signed-off-by: Markus Armbruster --- qapi/qapi-visit-core.c

[PATCH 08/13] qapi: Assert output visitors see only valid enum values

2020-04-23 Thread Markus Armbruster
output_type_enum() fails when *obj is not a valid value of the enum type. Should not happen. Drop the check, along with its unit tests. qapi_enum_lookup()'s assertion still guards. Signed-off-by: Markus Armbruster --- qapi/qapi-visit-core.c | 9 ---