Commit dfed51c5 authored by Robert Bradshaw's avatar Robert Bradshaw Committed by GitHub

Make re-declaration warning louder.

See #1874.
parent e8cf9fbf
...@@ -449,7 +449,7 @@ class Scope(object): ...@@ -449,7 +449,7 @@ class Scope(object):
# Likewise ignore inherited classes. # Likewise ignore inherited classes.
pass pass
elif visibility == 'extern': elif visibility == 'extern':
warning(pos, "'%s' redeclared " % name, 0) warning(pos, "'%s' redeclared " % name, 1)
elif visibility != 'ignore': elif visibility != 'ignore':
error(pos, "'%s' redeclared " % name) error(pos, "'%s' redeclared " % name)
entry = Entry(name, cname, type, pos = pos) 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