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
Boxiang Sun
cython
Commits
a9cb5f72
Commit
a9cb5f72
authored
Oct 10, 2015
by
Robert Bradshaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix some maybe-unsed function warnings.
These would (and should) probably be inlined regardless.
parent
3b9df6ee
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
Cython/Utility/MemoryView_C.c
Cython/Utility/MemoryView_C.c
+4
-4
No files found.
Cython/Utility/MemoryView_C.c
View file @
a9cb5f72
...
...
@@ -753,11 +753,11 @@ __pyx_memviewslice_index_full(const char *bufp, Py_ssize_t idx,
/////////////// MemviewDtypeToObject.proto ///////////////
{{
if
to_py_function
}}
static
PyObject
*
{{
get_function
}}(
const
char
*
itemp
);
/* proto */
static
CYTHON_INLINE
PyObject
*
{{
get_function
}}(
const
char
*
itemp
);
/* proto */
{{
endif
}}
{{
if
from_py_function
}}
static
int
{{
set_function
}}(
const
char
*
itemp
,
PyObject
*
obj
);
/* proto */
static
CYTHON_INLINE
int
{{
set_function
}}(
const
char
*
itemp
,
PyObject
*
obj
);
/* proto */
{{
endif
}}
/////////////// MemviewDtypeToObject ///////////////
...
...
@@ -767,13 +767,13 @@ static int {{set_function}}(const char *itemp, PyObject *obj); /* proto */
/* Convert a dtype to or from a Python object */
{{
if
to_py_function
}}
static
PyObject
*
{{
get_function
}}(
const
char
*
itemp
)
{
static
CYTHON_INLINE
PyObject
*
{{
get_function
}}(
const
char
*
itemp
)
{
return
(
PyObject
*
)
{{
to_py_function
}}(
*
({{
dtype
}}
*
)
itemp
);
}
{{
endif
}}
{{
if
from_py_function
}}
static
int
{{
set_function
}}(
const
char
*
itemp
,
PyObject
*
obj
)
{
static
CYTHON_INLINE
int
{{
set_function
}}(
const
char
*
itemp
,
PyObject
*
obj
)
{
{{
dtype
}}
value
=
{{
from_py_function
}}(
obj
);
if
({{
error_condition
}})
return
0
;
...
...
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