diff options
author | Christian Heimes <christian@python.org> | 2022-08-19 06:08:43 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-19 06:08:43 (GMT) |
commit | d9c1b746b5013f81d1724757bb3c6a1c87c4a8dc (patch) | |
tree | 99445016a5ce1bcb2c903dd2006ebc28dbf202ba /Objects | |
parent | 6740680b575249e498e3ca2b55d262baf9db6521 (diff) | |
download | cpython-d9c1b746b5013f81d1724757bb3c6a1c87c4a8dc.zip cpython-d9c1b746b5013f81d1724757bb3c6a1c87c4a8dc.tar.gz cpython-d9c1b746b5013f81d1724757bb3c6a1c87c4a8dc.tar.bz2 |
gh-96017: Fix some compiler warnings (GH-96018)
- "comparison of integers of different signs" in typeobject.c
- only define static_builtin_index_is_set in DEBUG builds
- only define recreate_gil with ifdef HAVE_FORK
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/typeobject.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Objects/typeobject.c b/Objects/typeobject.c index e8c36cf..e61acd2 100644 --- a/Objects/typeobject.c +++ b/Objects/typeobject.c @@ -70,11 +70,13 @@ static inline PyTypeObject * subclass_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) |