Commit c28fdb59 authored by Robert Bradshaw's avatar Robert Bradshaw

Trac #158 (defined after used) a warning for now for backwards compatability.

Will change in 0.12
parent 76e9534b
...@@ -730,7 +730,7 @@ property NAME: ...@@ -730,7 +730,7 @@ property NAME:
if node.name in self.seen_vars_stack[-1]: if node.name in self.seen_vars_stack[-1]:
entry = self.env_stack[-1].lookup(node.name) entry = self.env_stack[-1].lookup(node.name)
if entry is None or entry.visibility != 'extern': if entry is None or entry.visibility != 'extern':
error(node.pos, "cdef variable '%s' declared after it is used" % node.name) warning(node.pos, "cdef variable '%s' declared after it is used" % node.name, 2)
self.visitchildren(node) self.visitchildren(node)
return node return node
......
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