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
a31a76c4
Commit
a31a76c4
authored
Aug 21, 2012
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix C compiler warning about unused function parameter in tp_clear()
parent
12bed2b0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
Cython/Compiler/ModuleNode.py
Cython/Compiler/ModuleNode.py
+8
-2
No files found.
Cython/Compiler/ModuleNode.py
View file @
a31a76c4
...
@@ -1256,8 +1256,6 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
...
@@ -1256,8 +1256,6 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
base_type
=
scope
.
parent_type
.
base_type
base_type
=
scope
.
parent_type
.
base_type
if
tp_slot
.
slot_code
(
scope
)
!=
slot_func
:
if
tp_slot
.
slot_code
(
scope
)
!=
slot_func
:
return
# never used
return
# never used
code
.
putln
(
""
)
code
.
putln
(
"static int %s(PyObject *o) {"
%
slot_func
)
py_attrs
=
[]
py_attrs
=
[]
py_buffers
=
[]
py_buffers
=
[]
...
@@ -1267,6 +1265,14 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
...
@@ -1267,6 +1265,14 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
if
entry
.
type
==
PyrexTypes
.
c_py_buffer_type
:
if
entry
.
type
==
PyrexTypes
.
c_py_buffer_type
:
py_buffers
.
append
(
entry
)
py_buffers
.
append
(
entry
)
if
py_attrs
or
py_buffers
or
base_type
:
unused
=
''
else
:
unused
=
'CYTHON_UNUSED '
code
.
putln
(
""
)
code
.
putln
(
"static int %s(%sPyObject *o) {"
%
(
slot_func
,
unused
))
if
py_attrs
or
py_buffers
:
if
py_attrs
or
py_buffers
:
self
.
generate_self_cast
(
scope
,
code
)
self
.
generate_self_cast
(
scope
,
code
)
code
.
putln
(
"PyObject* tmp;"
)
code
.
putln
(
"PyObject* tmp;"
)
...
...
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