diff options
author | Stefan Behnel <stefan_ml@behnel.de> | 2021-04-20 18:38:36 +0200 |
---|---|---|
committer | Stefan Behnel <stefan_ml@behnel.de> | 2021-04-20 18:38:36 +0200 |
commit | 434882af22b8c1941f078557b6411a1af63d099b (patch) | |
tree | 5c6325700b0e7290b16301ad3507aa223dc38491 | |
parent | 0534584360feb88d168402f1677a7f3afdf832c8 (diff) | |
download | cython-434882af22b8c1941f078557b6411a1af63d099b.tar.gz |
Avoid C compiler warning in Py<3.7 when the "__Pyx_PyObject_CallMethod0" helper function is unused.
-rw-r--r-- | Cython/Utility/ExtensionTypes.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Cython/Utility/ExtensionTypes.c b/Cython/Utility/ExtensionTypes.c index 04d95a4d4..b43f5018c 100644 --- a/Cython/Utility/ExtensionTypes.c +++ b/Cython/Utility/ExtensionTypes.c @@ -108,6 +108,9 @@ static int __Pyx_PyType_Ready(PyTypeObject *t) { // Other than this check, the Py_TPFLAGS_HEAPTYPE flag is unused // in PyType_Ready(). t->tp_flags |= Py_TPFLAGS_HEAPTYPE; +#else + // avoid C warning about unused helper function + (void)__Pyx_PyObject_CallMethod0; #endif r = PyType_Ready(t); |