Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Xavier Thompson
cython
Commits
dfed51c5
Commit
dfed51c5
authored
7 years ago
by
Robert Bradshaw
Committed by
GitHub
7 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make re-declaration warning louder.
See #1874.
parent
e8cf9fbf
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
Cython/Compiler/Symtab.py
Cython/Compiler/Symtab.py
+1
-1
No files found.
Cython/Compiler/Symtab.py
View file @
dfed51c5
...
@@ -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
)
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment