summaryrefslogtreecommitdiffstats
path: root/python_modules/marshal.py
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2010-06-22 16:03:02 +0200
committerMarc-André Lureau <marcandre.lureau@gmail.com>2012-03-20 15:25:44 +0100
commit9f3a36f3f939c14da4e2fa1f98f3ebfd50dcf9c7 (patch)
treecdeb4b13939771c19a96151cd140389884da99a2 /python_modules/marshal.py
parent2523cec8c4890f977ee5569d9280d54108790674 (diff)
downloadspice-protocol-9f3a36f3f939c14da4e2fa1f98f3ebfd50dcf9c7.tar.gz
spice-protocol-9f3a36f3f939c14da4e2fa1f98f3ebfd50dcf9c7.tar.xz
spice-protocol-9f3a36f3f939c14da4e2fa1f98f3ebfd50dcf9c7.zip
Make internal generated marshaller functions static
Diffstat (limited to 'python_modules/marshal.py')
-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 76081a9..c4bb896 100644
--- a/python_modules/marshal.py
+++ b/python_modules/marshal.py
@@ -115,7 +115,7 @@ def write_marshal_ptr_function(writer, target_type):
writer.header = header
writer.out_prefix = ""
if target_type.is_array():
- scope = writer.function(marshal_function, "void *", "SpiceMarshaller *m, %s_t *ptr, int count" % target_type.element_type.primitive_type() + names_args)
+ scope = writer.function(marshal_function, "SPICE_GNUC_UNUSED static void *", "SpiceMarshaller *m, %s_t *ptr, int count" % target_type.element_type.primitive_type() + names_args)
else:
scope = writer.function(marshal_function, "void *", "SpiceMarshaller *m, %s *ptr" % target_type.c_type() + names_args)
header.writeln("void *" + marshal_function + "(SpiceMarshaller *m, %s *msg" % target_type.c_type() + names_args + ");")