On 3/15/23 04:28, 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;
         | ^

Reported-by: Markus Armbruster<arm...@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé<phi...@linaro.org>
---
  docs/devel/qapi-code-gen.rst | 6 +++---
  scripts/qapi/events.py       | 2 ++
  scripts/qapi/schema.py       | 5 ++++-
  scripts/qapi/types.py        | 2 ++
  4 files changed, 11 insertions(+), 4 deletions(-)

Reviewed-by: Richard Henderson <richard.hender...@linaro.org>

r~

Reply via email to