summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Behnel <stefan_ml@behnel.de>2021-04-27 16:35:10 +0200
committerStefan Behnel <stefan_ml@behnel.de>2021-04-27 16:35:10 +0200
commit74476f97724f5379ac93cdba2fd6aa24197dc699 (patch)
tree02a3e9745f3f6575ece465662ac4591d478db7fe
parente98e24055293fbc6cc92332984939657b91f1df4 (diff)
downloadcython-clean_up_capi_features.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.c2
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);