summaryrefslogtreecommitdiff
path: root/python_modules
diff options
context:
space:
mode:
authorHaochen Tong <i@hexchain.org>2020-07-10 22:20:18 +0200
committerFrediano Ziglio <freddy77@gmail.com>2020-07-11 08:17:20 +0100
commit8e0e13881eb3cbc6210e7ebee430eab9fb941004 (patch)
tree4548588c2900cfe21aea32841fc0232c11d869d7 /python_modules
parentbca74fb6c9c8a15fe75b0e9454bf67b73c95b2d2 (diff)
marshal: fix clang "missing field initializer" warning on generated files
Signed-off-by: Haochen Tong <i@hexchain.org> Acked-by: Frediano Ziglio <fziglio@redhat.com>
Diffstat (limited to 'python_modules')
-rw-r--r--python_modules/marshal.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python_modules/marshal.py b/python_modules/marshal.py
index e9130f3..269dadf 100644
--- a/python_modules/marshal.py
+++ b/python_modules/marshal.py
@@ -419,7 +419,7 @@ def write_protocol_marshaller(writer, proto, is_server, private_marshallers):
scope = writer.function("spice_message_marshallers_get" + writer.public_suffix,
"SpiceMessageMarshallers *",
"void")
- writer.writeln("static SpiceMessageMarshallers marshallers = {NULL};").newline()
+ writer.writeln("static SpiceMessageMarshallers marshallers = {0};").newline()
for f in sorted(functions.keys()):
member = f[len("spice_marshall_"):]
if not member.startswith("msg"):