mirror of https://github.com/python/cpython
gh-94673: Fix compiler warning in typeobject.c (#117980)
This commit is contained in:
parent
0d29302155
commit
353ea0b273
|
@ -116,11 +116,13 @@ type_from_ref(PyObject *ref)
|
|||
|
||||
/* helpers for for static builtin types */
|
||||
|
||||
#ifndef NDEBUG
|
||||
static inline int
|
||||
static_builtin_index_is_set(PyTypeObject *self)
|
||||
{
|
||||
return self->tp_subclasses != NULL;
|
||||
}
|
||||
#endif
|
||||
|
||||
static inline size_t
|
||||
static_builtin_index_get(PyTypeObject *self)
|
||||
|
|
Loading…
Reference in New Issue