From 8e0e13881eb3cbc6210e7ebee430eab9fb941004 Mon Sep 17 00:00:00 2001 From: Haochen Tong Date: Fri, 10 Jul 2020 22:20:18 +0200 Subject: marshal: fix clang "missing field initializer" warning on generated files Signed-off-by: Haochen Tong Acked-by: Frediano Ziglio --- python_modules/marshal.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"): -- cgit v1.2.3