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
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
cython
Commits
2b232cde
Commit
2b232cde
authored
Aug 21, 2012
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
work around C compiler warning about unused label in optimised list/tuple looping code
parent
084b04a3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
Cython/Compiler/ExprNodes.py
Cython/Compiler/ExprNodes.py
+6
-3
No files found.
Cython/Compiler/ExprNodes.py
View file @
2b232cde
...
...
@@ -2132,17 +2132,20 @@ class IteratorNode(ExprNode):
inc_dec
=
'++'
code
.
putln
(
"#if CYTHON_COMPILING_IN_CPYTHON"
)
code
.
putln
(
"%s = Py%s_GET_ITEM(%s, %s); __Pyx_INCREF(%s); %s%s;"
%
(
"%s = Py%s_GET_ITEM(%s, %s); __Pyx_INCREF(%s); %s%s;
%s
"
%
(
result_name
,
test_name
,
self
.
py_result
(),
self
.
counter_cname
,
result_name
,
self
.
counter_cname
,
inc_dec
))
inc_dec
,
# use the error label to avoid C compiler warnings if we only use it below
code
.
error_goto_if_neg
(
'0'
,
self
.
pos
)
))
code
.
putln
(
"#else"
)
code
.
putln
(
"%s = PySequence_ITEM(%s, %s); %s%s; %s
;
"
%
(
"%s = PySequence_ITEM(%s, %s); %s%s; %s"
%
(
result_name
,
self
.
py_result
(),
self
.
counter_cname
,
...
...
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