]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-94673: Fix compiler warning in typeobject.c (#117980)
authorErlend E. Aasland <erlend@python.org>
Wed, 17 Apr 2024 17:56:59 +0000 (19:56 +0200)
committerGitHub <noreply@github.com>
Wed, 17 Apr 2024 17:56:59 +0000 (17:56 +0000)
Objects/typeobject.c

index 6304ee178fd038d8b95f77bfceeb07ee03a57b33..ffd66fd8769e1d7cd302caa23b3f1e27728fb2b6 100644 (file)
@@ -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)