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
310a6313
Commit
310a6313
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
293fa610
Changes
3
Show 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 @
310a6313
...
@@ -1005,6 +1005,7 @@ class SlotTable(object):
...
@@ -1005,6 +1005,7 @@ class SlotTable(object):
MethodSlot
(
unaryfunc
,
"am_await"
,
"__await__"
,
method_name_to_slot
),
MethodSlot
(
unaryfunc
,
"am_await"
,
"__await__"
,
method_name_to_slot
),
MethodSlot
(
unaryfunc
,
"am_aiter"
,
"__aiter__"
,
method_name_to_slot
),
MethodSlot
(
unaryfunc
,
"am_aiter"
,
"__aiter__"
,
method_name_to_slot
),
MethodSlot
(
unaryfunc
,
"am_anext"
,
"__anext__"
,
method_name_to_slot
),
MethodSlot
(
unaryfunc
,
"am_anext"
,
"__anext__"
,
method_name_to_slot
),
EmptySlot
(
"am_send"
,
ifdef
=
"PY_VERSION_HEX >= 0x030A00A3"
),
)
)
self
.
slot_table
=
(
self
.
slot_table
=
(
...
...
Cython/Utility/AsyncGen.c
View file @
310a6313
...
@@ -386,7 +386,10 @@ static PyType_Spec __pyx_AsyncGenType_spec = {
...
@@ -386,7 +386,10 @@ static PyType_Spec __pyx_AsyncGenType_spec = {
static
__Pyx_PyAsyncMethodsStruct
__Pyx_async_gen_as_async
=
{
static
__Pyx_PyAsyncMethodsStruct
__Pyx_async_gen_as_async
=
{
0
,
/* am_await */
0
,
/* am_await */
PyObject_SelfIter
,
/* am_aiter */
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
#endif
...
@@ -661,7 +664,10 @@ static PyType_Spec __pyx__PyAsyncGenASendType_spec = {
...
@@ -661,7 +664,10 @@ static PyType_Spec __pyx__PyAsyncGenASendType_spec = {
static
__Pyx_PyAsyncMethodsStruct
__Pyx_async_gen_asend_as_async
=
{
static
__Pyx_PyAsyncMethodsStruct
__Pyx_async_gen_asend_as_async
=
{
PyObject_SelfIter
,
/* am_await */
PyObject_SelfIter
,
/* am_await */
0
,
/* am_aiter */
0
,
/* am_aiter */
0
/* am_anext */
0
,
/* am_anext */
#if PY_VERSION_HEX >= 0x030A00A3
0
,
/*am_send*/
#endif
};
};
#endif
#endif
...
@@ -1135,7 +1141,10 @@ static PyType_Spec __pyx__PyAsyncGenAThrowType_spec = {
...
@@ -1135,7 +1141,10 @@ static PyType_Spec __pyx__PyAsyncGenAThrowType_spec = {
static
__Pyx_PyAsyncMethodsStruct
__Pyx_async_gen_athrow_as_async
=
{
static
__Pyx_PyAsyncMethodsStruct
__Pyx_async_gen_athrow_as_async
=
{
PyObject_SelfIter
,
/* am_await */
PyObject_SelfIter
,
/* am_await */
0
,
/* am_aiter */
0
,
/* am_aiter */
0
/* am_anext */
0
,
/* am_anext */
#if PY_VERSION_HEX >= 0x030A00A3
0
,
/*am_send*/
#endif
};
};
#endif
#endif
...
...
Cython/Utility/Coroutine.c
View file @
310a6313
...
@@ -1735,6 +1735,9 @@ static __Pyx_PyAsyncMethodsStruct __pyx_Coroutine_as_async = {
...
@@ -1735,6 +1735,9 @@ static __Pyx_PyAsyncMethodsStruct __pyx_Coroutine_as_async = {
__Pyx_Coroutine_await
,
/*am_await*/
__Pyx_Coroutine_await
,
/*am_await*/
0
,
/*am_aiter*/
0
,
/*am_aiter*/
0
,
/*am_anext*/
0
,
/*am_anext*/
#if PY_VERSION_HEX >= 0x030A00A3
0
,
/*am_send*/
#endif
};
};
#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