diff options
author | Stefan Behnel <stefan_ml@behnel.de> | 2021-04-27 16:35:10 +0200 |
---|---|---|
committer | Stefan Behnel <stefan_ml@behnel.de> | 2021-04-27 16:35:10 +0200 |
commit | 74476f97724f5379ac93cdba2fd6aa24197dc699 (patch) | |
tree | 02a3e9745f3f6575ece465662ac4591d478db7fe | |
parent | e98e24055293fbc6cc92332984939657b91f1df4 (diff) | |
download | cython-74476f97724f5379ac93cdba2fd6aa24197dc699.tar.gz |
Try to avoid C compiler warnings about unused utility functions, but only if it's really included.clean_up_capi_features
-rw-r--r-- | Cython/Utility/ExtensionTypes.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Cython/Utility/ExtensionTypes.c b/Cython/Utility/ExtensionTypes.c index b0929d3ef..9a18d14e0 100644 --- a/Cython/Utility/ExtensionTypes.c +++ b/Cython/Utility/ExtensionTypes.c @@ -169,7 +169,9 @@ static int __Pyx_PyType_Ready(PyTypeObject *t) { #if CYTHON_USE_TYPE_SPECS || !(CYTHON_COMPILING_IN_CPYTHON || CYTHON_COMPILING_IN_LIMITED_API) // avoid C warning about unused helper function (void)__Pyx_PyObject_CallMethod0; +#if CYTHON_USE_TYPE_SPECS (void)__Pyx_validate_bases_tuple; +#endif return PyType_Ready(t); |