diff options
| author | Fabiano FidĂȘncio <fidencio@redhat.com> | 2014-09-03 11:51:45 +0200 |
|---|---|---|
| committer | Christophe Fergeau <cfergeau@redhat.com> | 2014-09-18 13:13:27 +0200 |
| commit | 744675b424a9db5e6fc26440dcfab961fd1d284e (patch) | |
| tree | 00e65988ea942bc1ec57de545f377fe8c6b76ab7 /python_modules/marshal.py | |
| parent | 3916b9d813e716d0c8c03a2be82dd169e4461e90 (diff) | |
| download | spice-protocol-744675b424a9db5e6fc26440dcfab961fd1d284e.tar.gz spice-protocol-744675b424a9db5e6fc26440dcfab961fd1d284e.tar.xz spice-protocol-744675b424a9db5e6fc26440dcfab961fd1d284e.zip | |
python: Fix -Wunused-parameter
Although the most part of the parameters marked as unused are actually
being used for a few functions, a bunch of warnings can be seen when
the code is compiled with "-Wall -Wextra". As adding the unused attribute
means that the variable/parameter is meant to be *possibly* unused, we're
safe adding it in the generated code, even for used variables/parameters.
Diffstat (limited to 'python_modules/marshal.py')
| -rw-r--r-- | python_modules/marshal.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python_modules/marshal.py b/python_modules/marshal.py index ae5fe31..97d02e9 100644 --- a/python_modules/marshal.py +++ b/python_modules/marshal.py @@ -353,7 +353,7 @@ def write_message_marshaller(writer, message, is_server, private): scope = writer.function(function_name, "static void" if private else "void", - "SpiceMarshaller *m, %s *msg" % message.c_type() + names_args) + "SPICE_GNUC_UNUSED SpiceMarshaller *m, SPICE_GNUC_UNUSED %s *msg" % message.c_type() + names_args) scope.variable_def("SPICE_GNUC_UNUSED SpiceMarshaller *", "m2") for n in names: |
