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
Kirill Smelkov
cython
Commits
70c37a02
Commit
70c37a02
authored
Jan 21, 2022
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid C compiler warning about uninitialised "am_send" slots in Py3.10+.
parent
b69c9efd
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
3 deletions
+16
-3
Cython/Compiler/TypeSlots.py
Cython/Compiler/TypeSlots.py
+1
-0
Cython/Utility/AsyncGen.c
Cython/Utility/AsyncGen.c
+12
-3
Cython/Utility/Coroutine.c
Cython/Utility/Coroutine.c
+3
-0
No files found.
Cython/Compiler/TypeSlots.py
View file @
70c37a02
...
...
@@ -813,6 +813,7 @@ PyAsyncMethods = (
MethodSlot
(
unaryfunc
,
"am_await"
,
"__await__"
),
MethodSlot
(
unaryfunc
,
"am_aiter"
,
"__aiter__"
),
MethodSlot
(
unaryfunc
,
"am_anext"
,
"__anext__"
),
EmptySlot
(
"am_send"
,
ifdef
=
"PY_VERSION_HEX >= 0x030A00A3"
),
)
#------------------------------------------------------------------------------------------
...
...
Cython/Utility/AsyncGen.c
View file @
70c37a02
...
...
@@ -350,7 +350,10 @@ static PyMethodDef __Pyx_async_gen_methods[] = {
static
__Pyx_PyAsyncMethodsStruct
__Pyx_async_gen_as_async
=
{
0
,
/* am_await */
PyObject_SelfIter
,
/* am_aiter */
(
unaryfunc
)
__Pyx_async_gen_anext
/* am_anext */
(
unaryfunc
)
__Pyx_async_gen_anext
,
/* am_anext */
#if PY_VERSION_HEX >= 0x030A00A3
0
,
/*am_send*/
#endif
};
#endif
...
...
@@ -593,7 +596,10 @@ static PyMethodDef __Pyx_async_gen_asend_methods[] = {
static
__Pyx_PyAsyncMethodsStruct
__Pyx_async_gen_asend_as_async
=
{
PyObject_SelfIter
,
/* am_await */
0
,
/* am_aiter */
0
/* am_anext */
0
,
/* am_anext */
#if PY_VERSION_HEX >= 0x030A00A3
0
,
/*am_send*/
#endif
};
#endif
...
...
@@ -1000,7 +1006,10 @@ static PyMethodDef __Pyx_async_gen_athrow_methods[] = {
static
__Pyx_PyAsyncMethodsStruct
__Pyx_async_gen_athrow_as_async
=
{
PyObject_SelfIter
,
/* am_await */
0
,
/* am_aiter */
0
/* am_anext */
0
,
/* am_anext */
#if PY_VERSION_HEX >= 0x030A00A3
0
,
/*am_send*/
#endif
};
#endif
...
...
Cython/Utility/Coroutine.c
View file @
70c37a02
...
...
@@ -1647,6 +1647,9 @@ static __Pyx_PyAsyncMethodsStruct __pyx_Coroutine_as_async = {
__Pyx_Coroutine_await
,
/*am_await*/
0
,
/*am_aiter*/
0
,
/*am_anext*/
#if PY_VERSION_HEX >= 0x030A00A3
0
,
/*am_send*/
#endif
};
#endif
...
...
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