Fix bad placement of PYBINDGEN_UNUSED which doesn't compile with gcc 2.95
This commit is contained in:
1 parent
dcec55fb80
commit
885a4090f5
3 files changed
+3
-3
No files matched your search
@@ -188,7 +188,7 @@ class CppStaticAttributeSetter(PySetter):
|
||||
self.after_call.write_code('return 0;')
|
||||
|
||||
## now generate the function itself
|
||||
code_sink.writeln(("static int %s(%s *dummy PYBINDGEN_UNUSED, "
|
||||
code_sink.writeln(("static int %s(%s * PYBINDGEN_UNUSED dummy, "
|
||||
"PyObject *value)")
|
||||
% (self.c_function_name, self.class_.pystruct))
|
||||
code_sink.writeln('{')
|
||||
|
||||
Reference in new issue
Block a user