From 353ea0b273b389e075b2ac9687d3e27467b893cd Mon Sep 17 00:00:00 2001 From: "Erlend E. Aasland" Date: Wed, 17 Apr 2024 19:56:59 +0200 Subject: [PATCH] gh-94673: Fix compiler warning in typeobject.c (#117980) --- Objects/typeobject.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Objects/typeobject.c b/Objects/typeobject.c index 6304ee178fd..ffd66fd8769 100644 --- a/Objects/typeobject.c +++ b/Objects/typeobject.c @@ -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)