Fix bad placement of PYBINDGEN_UNUSED which doesn't compile with gcc 2.95

This commit is contained in:
Gustavo J. A. M. Carneiro committed 2007-08-18 14:45:45 +01:00
1 parent dcec55fb80
commit 885a4090f5
3 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -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('{')