summaryrefslogtreecommitdiffstats
path: root/Objects/funcobject.c
diff options
context:
space:
mode:
Diffstat (limited to 'Objects/funcobject.c')
-rw-r--r--Objects/funcobject.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Objects/funcobject.c b/Objects/funcobject.c
index 1f2387f..4ba4728 100644
--- a/Objects/funcobject.c
+++ b/Objects/funcobject.c
@@ -289,12 +289,14 @@ functions is running.
*/
+#ifndef Py_GIL_DISABLED
static inline struct _func_version_cache_item *
get_cache_item(PyInterpreterState *interp, uint32_t version)
{
return interp->func_state.func_version_cache +
(version % FUNC_VERSION_CACHE_SIZE);
}
+#endif
void
_PyFunction_SetVersion(PyFunctionObject *func, uint32_t version)