From c28fdb590be701bf16abb56584d5cce94b22afaa Mon Sep 17 00:00:00 2001 From: Robert Bradshaw Date: Thu, 9 Apr 2009 04:57:44 -0700 Subject: [PATCH] Trac #158 (defined after used) a warning for now for backwards compatability. Will change in 0.12 --- Cython/Compiler/ParseTreeTransforms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.26.2