Commit 2a9ed746 authored by Vitja Makarov's avatar Vitja Makarov

Fix refnanny context warning when in nogil mode

parent 72f8a46e
...@@ -1309,6 +1309,7 @@ class FuncDefNode(StatNode, BlockNode): ...@@ -1309,6 +1309,7 @@ class FuncDefNode(StatNode, BlockNode):
(self.return_type.declaration_code(Naming.retval_cname), (self.return_type.declaration_code(Naming.retval_cname),
init)) init))
tempvardecl_code = code.insertion_point() tempvardecl_code = code.insertion_point()
if not lenv.nogil:
code.put_declare_refcount_context() code.put_declare_refcount_context()
self.generate_keyword_list(code) self.generate_keyword_list(code)
if profile: if profile:
......
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