Commit fc147b68 authored by Robert Bradshaw's avatar Robert Bradshaw

Get rid of unused argument warning, noticed by Ondrej Certik, fix by Carl Witty

parent 72b9b908
...@@ -1543,6 +1543,10 @@ class DefNode(FuncDefNode): ...@@ -1543,6 +1543,10 @@ class DefNode(FuncDefNode):
def generate_argument_parsing_code(self, env, code): def generate_argument_parsing_code(self, env, code):
# Generate PyArg_ParseTuple call for generic # Generate PyArg_ParseTuple call for generic
# arguments, if any. # arguments, if any.
if self.entry.signature.has_dummy_arg:
# get rid of unused argument warning
code.putln("%s = %s;" % (Naming.self_cname, Naming.self_cname))
old_error_label = code.new_error_label() old_error_label = code.new_error_label()
our_error_label = code.error_label our_error_label = code.error_label
end_label = code.new_label() end_label = code.new_label()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment