From: Markus Armbruster Date: Wed, 15 Mar 2017 12:57:02 +0000 (+0100) Subject: qapi: Fix QAPISchemaEnumType.is_implicit() for 'QType' X-Git-Tag: v2.9.0-rc1~20^2~34 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4636211e4dddfc798d9e9072546a87f9adf7ce5a;p=thirdparty%2Fqemu.git qapi: Fix QAPISchemaEnumType.is_implicit() for 'QType' Missed in commit 7264f5c. Harmless, because nothing checks whether an enumeration type is implicit so far. Signed-off-by: Markus Armbruster Reviewed-by: Eric Blake Message-Id: <1489582656-31133-14-git-send-email-armbru@redhat.com> --- diff --git a/scripts/qapi.py b/scripts/qapi.py index fb10d937aaf..dd083b703ca 100644 --- a/scripts/qapi.py +++ b/scripts/qapi.py @@ -1152,8 +1152,8 @@ class QAPISchemaEnumType(QAPISchemaType): v.check_clash(self.info, seen) def is_implicit(self): - # See QAPISchema._make_implicit_enum_type() - return self.name.endswith('Kind') + # See QAPISchema._make_implicit_enum_type() and ._def_predefineds() + return self.name.endswith('Kind') or self.name == 'QType' def c_type(self): return c_name(self.name)