https://github.com/python/cpython/commit/353ea0b273b389e075b2ac9687d3e27467b893cd
commit: 353ea0b273b389e075b2ac9687d3e27467b893cd
branch: main
author: Erlend E. Aasland <[email protected]>
committer: erlend-aasland <[email protected]>
date: 2024-04-17T17:56:59Z
summary:

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

files:
M Objects/typeobject.c

diff --git a/Objects/typeobject.c b/Objects/typeobject.c
index 6304ee178fd038..ffd66fd8769e1d 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)

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]

Reply via email to