Fixed an error in a call to the error function.
authorWilliam Stein <wstein@gmail.com>
Sun, 29 Oct 2006 01:19:51 +0000 (18:19 -0700)
committerWilliam Stein <wstein@gmail.com>
Sun, 29 Oct 2006 01:19:51 +0000 (18:19 -0700)
Cython/Compiler/Symtab.py

index 7f5fc3ee7c8c3419919ddb65980940142058e0b8..caf0ffeb274257728809ed06b0dc4d546d940d45 100644 (file)
@@ -195,7 +195,7 @@ class Scope:
         # declared.
         dict = self.entries
         if name and dict.has_key(name):
-            warning(pos, "'%s' redeclared (ignoring second declaration)" % name, 0)
+            error(pos, "'%s' redeclared (ignoring second declaration)" % name)
         entry = Entry(name, cname, type, pos = pos)
         entry.in_cinclude = self.in_cinclude
         if name: