Changed that error to a warning.
authorWilliam Stein <wstein@gmail.com>
Sun, 29 Oct 2006 01:21:12 +0000 (18:21 -0700)
committerWilliam Stein <wstein@gmail.com>
Sun, 29 Oct 2006 01:21:12 +0000 (18:21 -0700)
Cython/Compiler/Symtab.py

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