From 26724c16dd4301baaed74084289a0943ea4b492f Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Wed, 21 Apr 2021 08:52:04 +0200 Subject: Avoid C compiler warnings about unused functions. --- Cython/Utility/ExtensionTypes.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 /////////////// -- cgit v1.2.1