Skip to content

Commit 353ea0b

Browse files
gh-94673: Fix compiler warning in typeobject.c (#117980)
1 parent 0d29302 commit 353ea0b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: Objects/typeobject.c

+2
Original file line numberDiff line numberDiff line change
@@ -116,11 +116,13 @@ type_from_ref(PyObject *ref)
116116

117117
/* helpers for for static builtin types */
118118

119+
#ifndef NDEBUG
119120
static inline int
120121
static_builtin_index_is_set(PyTypeObject *self)
121122
{
122123
return self->tp_subclasses != NULL;
123124
}
125+
#endif
124126

125127
static inline size_t
126128
static_builtin_index_get(PyTypeObject *self)

0 commit comments

Comments
 (0)