Skip to content

Commit 75d6b71

Browse files
committed
Avoid unused function warning.
1 parent 398ac14 commit 75d6b71

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Objects/typeobject.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5821,6 +5821,7 @@ type_assign_version_lock_held(PyTypeObject *type)
58215821
}
58225822
}
58235823

5824+
#ifdef Py_GIL_DISABLED
58245825
static unsigned int
58255826
type_assign_version(PyTypeObject *type)
58265827
{
@@ -5830,6 +5831,7 @@ type_assign_version(PyTypeObject *type)
58305831
types_mutex_unlock();
58315832
return version;
58325833
}
5834+
#endif
58335835

58345836
static unsigned int
58355837
type_lookup_ex(PyTypeObject *type, PyObject *name, _PyStackRef *out,

0 commit comments

Comments
 (0)