diff options
author | Orivej Desh <orivej@gmx.fr> | 2019-11-01 13:50:57 +0000 |
---|---|---|
committer | Stefan Behnel <stefan_ml@behnel.de> | 2019-11-01 14:50:57 +0100 |
commit | c75ed142e54351596a6de2359295730c5fab5ec6 (patch) | |
tree | 0a3848aeab15dbbcd3515ee242572620432fdbd5 | |
parent | a32a29e8aaa688e0507d374ab47e641eb1a427c4 (diff) | |
download | cython-c75ed142e54351596a6de2359295730c5fab5ec6.tar.gz |
Initialize tp_print in Python 3.8 (GH-3201)
This should complete #3171 in silencing -Wmissing-field-initializers.
-rw-r--r-- | Cython/Utility/AsyncGen.c | 12 | ||||
-rw-r--r-- | Cython/Utility/Coroutine.c | 12 | ||||
-rw-r--r-- | Cython/Utility/CythonFunction.c | 6 |
3 files changed, 30 insertions, 0 deletions
diff --git a/Cython/Utility/AsyncGen.c b/Cython/Utility/AsyncGen.c index d27904852..4e952185b 100644 --- a/Cython/Utility/AsyncGen.c +++ b/Cython/Utility/AsyncGen.c @@ -424,6 +424,9 @@ static PyTypeObject __pyx_AsyncGenType_type = { #if PY_VERSION_HEX >= 0x030800b1 0, /*tp_vectorcall*/ #endif +#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000 + 0, /*tp_print*/ +#endif }; @@ -656,6 +659,9 @@ static PyTypeObject __pyx__PyAsyncGenASendType_type = { #if PY_VERSION_HEX >= 0x030800b1 0, /*tp_vectorcall*/ #endif +#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000 + 0, /*tp_print*/ +#endif }; @@ -768,6 +774,9 @@ static PyTypeObject __pyx__PyAsyncGenWrappedValueType_type = { #if PY_VERSION_HEX >= 0x030800b1 0, /*tp_vectorcall*/ #endif +#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000 + 0, /*tp_print*/ +#endif }; @@ -1050,6 +1059,9 @@ static PyTypeObject __pyx__PyAsyncGenAThrowType_type = { #if PY_VERSION_HEX >= 0x030800b1 0, /*tp_vectorcall*/ #endif +#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000 + 0, /*tp_print*/ +#endif }; diff --git a/Cython/Utility/Coroutine.c b/Cython/Utility/Coroutine.c index 617c18ed1..ee332c99c 100644 --- a/Cython/Utility/Coroutine.c +++ b/Cython/Utility/Coroutine.c @@ -1526,6 +1526,9 @@ static PyTypeObject __pyx_CoroutineAwaitType_type = { #if PY_VERSION_HEX >= 0x030800b1 0, /*tp_vectorcall*/ #endif +#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000 + 0, /*tp_print*/ +#endif }; #if PY_VERSION_HEX < 0x030500B1 || defined(__Pyx_IterableCoroutine_USED) || CYTHON_USE_ASYNC_SLOTS @@ -1680,6 +1683,9 @@ static PyTypeObject __pyx_CoroutineType_type = { #if PY_VERSION_HEX >= 0x030800b1 0, /*tp_vectorcall*/ #endif +#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000 + 0, /*tp_print*/ +#endif }; static int __pyx_Coroutine_init(void) { @@ -1788,6 +1794,9 @@ static PyTypeObject __pyx_IterableCoroutineType_type = { #if PY_VERSION_HEX >= 0x030800b1 0, /*tp_vectorcall*/ #endif +#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000 + 0, /*tp_print*/ +#endif }; @@ -1893,6 +1902,9 @@ static PyTypeObject __pyx_GeneratorType_type = { #if PY_VERSION_HEX >= 0x030800b1 0, /*tp_vectorcall*/ #endif +#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000 + 0, /*tp_print*/ +#endif }; static int __pyx_Generator_init(void) { diff --git a/Cython/Utility/CythonFunction.c b/Cython/Utility/CythonFunction.c index b466c71f2..3a54b78a2 100644 --- a/Cython/Utility/CythonFunction.c +++ b/Cython/Utility/CythonFunction.c @@ -886,6 +886,9 @@ static PyTypeObject __pyx_CyFunctionType_type = { #if PY_VERSION_HEX >= 0x030800b1 0, /*tp_vectorcall*/ #endif +#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000 + 0, /*tp_print*/ +#endif }; @@ -1362,6 +1365,9 @@ static PyTypeObject __pyx_FusedFunctionType_type = { #if PY_VERSION_HEX >= 0x030800b1 0, /*tp_vectorcall*/ #endif +#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000 + 0, /*tp_print*/ +#endif }; static int __pyx_FusedFunction_init(void) { |