summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Behnel <stefan_ml@behnel.de>2021-04-21 08:52:04 +0200
committerStefan Behnel <stefan_ml@behnel.de>2021-04-21 08:52:04 +0200
commit26724c16dd4301baaed74084289a0943ea4b492f (patch)
treed6171b841d2fa63b9c8cf1890f5a11a72274097f
parent632a059cd807f89a685b7632a00e02866e935b95 (diff)
downloadcython-26724c16dd4301baaed74084289a0943ea4b492f.tar.gz
Avoid C compiler warnings about unused functions.
-rw-r--r--Cython/Utility/ExtensionTypes.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Cython/Utility/ExtensionTypes.c b/Cython/Utility/ExtensionTypes.c
index f18cc671d..6ecc7eda1 100644
--- a/Cython/Utility/ExtensionTypes.c
+++ b/Cython/Utility/ExtensionTypes.c
@@ -157,7 +157,8 @@ static int __Pyx_validate_bases_tuple(const char *type_name, Py_ssize_t dictoffs
static int __Pyx_PyType_Ready(PyTypeObject *t);/*proto*/
#endif
#else
-#define __Pyx_PyType_Ready(t) PyType_Ready(t)
+// avoid C warning about unused helper function
+#define __Pyx_PyType_Ready(t) ((void)__Pyx_PyObject_CallMethod0, (void)__Pyx_validate_bases_tuple, PyType_Ready(t))
#endif
/////////////// PyType_Ready ///////////////