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
Gwenaël Samain
cython
Commits
7306e1ec
Commit
7306e1ec
authored
Aug 03, 2011
by
Vitja Makarov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Mark unused METH_O arguments
parent
cecd09c9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
Cython/Compiler/Nodes.py
Cython/Compiler/Nodes.py
+6
-2
No files found.
Cython/Compiler/Nodes.py
View file @
7306e1ec
...
@@ -2344,8 +2344,12 @@ class DefNode(FuncDefNode):
...
@@ -2344,8 +2344,12 @@ class DefNode(FuncDefNode):
if
arg
.
is_self_arg
or
arg
.
is_type_arg
:
if
arg
.
is_self_arg
or
arg
.
is_type_arg
:
arg_code_list
.
append
(
"PyObject *%s"
%
arg
.
hdr_cname
)
arg_code_list
.
append
(
"PyObject *%s"
%
arg
.
hdr_cname
)
else
:
else
:
arg_code_list
.
append
(
decl
=
arg
.
hdr_type
.
declaration_code
(
arg
.
hdr_cname
)
arg
.
hdr_type
.
declaration_code
(
arg
.
hdr_cname
))
entry
=
self
.
local_scope
.
lookup
(
arg
.
name
)
if
not
entry
.
cf_used
:
arg_code_list
.
append
(
'CYTHON_UNUSED '
+
decl
)
else
:
arg_code_list
.
append
(
decl
)
if
not
self
.
entry
.
is_special
and
sig
.
method_flags
()
==
[
TypeSlots
.
method_noargs
]:
if
not
self
.
entry
.
is_special
and
sig
.
method_flags
()
==
[
TypeSlots
.
method_noargs
]:
arg_code_list
.
append
(
"CYTHON_UNUSED PyObject *unused"
)
arg_code_list
.
append
(
"CYTHON_UNUSED PyObject *unused"
)
if
(
self
.
entry
.
scope
.
is_c_class_scope
and
self
.
entry
.
name
==
"__ipow__"
):
if
(
self
.
entry
.
scope
.
is_c_class_scope
and
self
.
entry
.
name
==
"__ipow__"
):
...
...
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