Commit a58d9a3a authored by Stefan Behnel's avatar Stefan Behnel

Silence "redefined" warning again as it is more annoying than helpful to...

Silence "redefined" warning again as it is more annoying than helpful to receive it for every pxd-defined cpdef function.
See #1874.
Closes #2013.
parent 5b8315f7
......@@ -451,7 +451,8 @@ class Scope(object):
# Likewise ignore inherited classes.
pass
elif visibility == 'extern':
warning(pos, "'%s' redeclared " % name, 1)
# Silenced, until we have a safer way to prevent pxd-defined cpdef functions from ending up here.
warning(pos, "'%s' redeclared " % name, 0)
elif visibility != 'ignore':
error(pos, "'%s' redeclared " % name)
entry = Entry(name, cname, type, pos = pos)
......
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