Commit 4618e186 authored by Mark Peek's avatar Mark Peek

Remove some cython warnings

parent 9472b008
...@@ -70,8 +70,12 @@ cdef extern from "Python.h": ...@@ -70,8 +70,12 @@ cdef extern from "Python.h":
ctypedef struct PyThreadState: ctypedef struct PyThreadState:
PyFrameObject * frame PyFrameObject * frame
int recursion_depth int recursion_depth
void * curexc_type, * curexc_value, * curexc_traceback void * curexc_type
void * exc_type, * exc_value, * exc_traceback void * curexc_value
void * curexc_traceback
void * exc_type
void * exc_value
void * exc_traceback
PyThreadState * _PyThreadState_Current PyThreadState * _PyThreadState_Current
# ================================================================================ # ================================================================================
......
...@@ -482,7 +482,8 @@ cdef public class queue_poller [ object queue_poller_object, type queue_poller_t ...@@ -482,7 +482,8 @@ cdef public class queue_poller [ object queue_poller_object, type queue_poller_t
def poll (self, timeout=(30,0), int nevents=2000): def poll (self, timeout=(30,0), int nevents=2000):
cdef timespec ts cdef timespec ts
cdef int r, i cdef int r, i
cdef kevent * events, * k cdef kevent * events
cdef kevent * k
cdef coro co cdef coro co
cdef kevent_target kt cdef kevent_target kt
cdef kevent_key kk cdef kevent_key kk
......
...@@ -715,7 +715,8 @@ cdef class _profiler: ...@@ -715,7 +715,8 @@ cdef class _profiler:
cdef int dispatch (self, _frame * frame, int what, void * arg) except -1: cdef int dispatch (self, _frame * frame, int what, void * arg) except -1:
"""The main profiler dispatch called by Python.""" """The main profiler dispatch called by Python."""
cdef call_stack * top, * link cdef call_stack * top
cdef call_stack * link
# top may be NULL when a coro first starts. # top may be NULL when a coro first starts.
top = (<coro>the_scheduler._current).top top = (<coro>the_scheduler._current).top
if what == PyTrace_CALL: if what == PyTrace_CALL:
......
...@@ -494,7 +494,8 @@ cdef public class sock [ object sock_object, type sock_type ]: ...@@ -494,7 +494,8 @@ cdef public class sock [ object sock_object, type sock_type ]:
:raises EOFError: Not all data could be read. The first argument :raises EOFError: Not all data could be read. The first argument
includes any partial data read as a string. includes any partial data read as a string.
""" """
cdef char * p, * p0 cdef char * p
cdef char * p0
cdef int r cdef int r
cdef bytes buffer cdef bytes buffer
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment