Commit 70c37a02 authored by Stefan Behnel's avatar Stefan Behnel

Avoid C compiler warning about uninitialised "am_send" slots in Py3.10+.

parent b69c9efd
...@@ -813,6 +813,7 @@ PyAsyncMethods = ( ...@@ -813,6 +813,7 @@ PyAsyncMethods = (
MethodSlot(unaryfunc, "am_await", "__await__"), MethodSlot(unaryfunc, "am_await", "__await__"),
MethodSlot(unaryfunc, "am_aiter", "__aiter__"), MethodSlot(unaryfunc, "am_aiter", "__aiter__"),
MethodSlot(unaryfunc, "am_anext", "__anext__"), MethodSlot(unaryfunc, "am_anext", "__anext__"),
EmptySlot("am_send", ifdef="PY_VERSION_HEX >= 0x030A00A3"),
) )
#------------------------------------------------------------------------------------------ #------------------------------------------------------------------------------------------
......
...@@ -350,7 +350,10 @@ static PyMethodDef __Pyx_async_gen_methods[] = { ...@@ -350,7 +350,10 @@ static PyMethodDef __Pyx_async_gen_methods[] = {
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
...@@ -593,7 +596,10 @@ static PyMethodDef __Pyx_async_gen_asend_methods[] = { ...@@ -593,7 +596,10 @@ static PyMethodDef __Pyx_async_gen_asend_methods[] = {
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
...@@ -1000,7 +1006,10 @@ static PyMethodDef __Pyx_async_gen_athrow_methods[] = { ...@@ -1000,7 +1006,10 @@ static PyMethodDef __Pyx_async_gen_athrow_methods[] = {
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
......
...@@ -1647,6 +1647,9 @@ static __Pyx_PyAsyncMethodsStruct __pyx_Coroutine_as_async = { ...@@ -1647,6 +1647,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
......
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