From: Erlend E. Aasland Date: Wed, 17 Apr 2024 17:56:59 +0000 (+0200) Subject: gh-94673: Fix compiler warning in typeobject.c (#117980) X-Git-Tag: v3.13.0b1~367 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=353ea0b273b389e075b2ac9687d3e27467b893cd;p=thirdparty%2FPython%2Fcpython.git gh-94673: Fix compiler warning in typeobject.c (#117980) --- diff --git a/Objects/typeobject.c b/Objects/typeobject.c index 6304ee178fd0..ffd66fd8769e 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)