Re: [PATCH v2 2/3] qapi: Do not generate empty enum

2023-03-15 Thread Philippe Mathieu-Daudé
On 15/3/23 16:19, Stefan Berger wrote: On 3/15/23 07:13, Philippe Mathieu-Daudé wrote: Per the C++ standard, empty enum are ill-formed. Do not generate them in order to avoid:    In file included from qga/qga-qapi-emit-events.c:14:    qga/qga-qapi-emit-events.h:20:1: error: empty enum is invali

Re: [PATCH v2 2/3] qapi: Do not generate empty enum

2023-03-15 Thread Stefan Berger
On 3/15/23 07:13, Philippe Mathieu-Daudé wrote: Per the C++ standard, empty enum are ill-formed. Do not generate them in order to avoid: In file included from qga/qga-qapi-emit-events.c:14: qga/qga-qapi-emit-events.h:20:1: error: empty enum is invalid 20 | } qga_QAPIEvent;

[PATCH v2 2/3] qapi: Do not generate empty enum

2023-03-15 Thread Philippe Mathieu-Daudé
Per the C++ standard, empty enum are ill-formed. Do not generate them in order to avoid: In file included from qga/qga-qapi-emit-events.c:14: qga/qga-qapi-emit-events.h:20:1: error: empty enum is invalid 20 | } qga_QAPIEvent; | ^ Reported-by: Markus Armbruster Signed-off-by: Phi