From: Robert Bradshaw Date: Thu, 9 Apr 2009 11:57:44 +0000 (-0700) Subject: Trac #158 (defined after used) a warning for now for backwards compatability. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=c28fdb590be701bf16abb56584d5cce94b22afaa;p=cython.git Trac #158 (defined after used) a warning for now for backwards compatability. Will change in 0.12 --- diff --git a/Cython/Compiler/ParseTreeTransforms.py b/Cython/Compiler/ParseTreeTransforms.py index 45ed94b4..cd15015b 100644 --- a/Cython/Compiler/ParseTreeTransforms.py +++ b/Cython/Compiler/ParseTreeTransforms.py @@ -730,7 +730,7 @@ property NAME: if node.name in self.seen_vars_stack[-1]: entry = self.env_stack[-1].lookup(node.name) 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) return node