gh-94673: Fix compiler warning in typeobject.c (#117980)

This commit is contained in:
Erlend E. Aasland 2024-04-17 19:56:59 +02:00 committed by GitHub
parent 0d29302155
commit 353ea0b273
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

View File

@ -116,11 +116,13 @@ type_from_ref(PyObject *ref)
/* helpers for for static builtin types */ /* helpers for for static builtin types */
#ifndef NDEBUG
static inline int static inline int
static_builtin_index_is_set(PyTypeObject *self) static_builtin_index_is_set(PyTypeObject *self)
{ {
return self->tp_subclasses != NULL; return self->tp_subclasses != NULL;
} }
#endif
static inline size_t static inline size_t
static_builtin_index_get(PyTypeObject *self) static_builtin_index_get(PyTypeObject *self)