GeezerVison is showing github.com — gh-96017: Fix some compiler warnings (GH-96018) · python/cpython@d9c1b74
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: Objects/typeobject.c +2Lines changed: 2 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -70,11 +70,13 @@ static inline PyTypeObject * subclass_from_ref(PyObject *ref); |
70 | 70 |
|
71 | 71 | /* helpers for for static builtin types */ |
72 | 72 |
|
| 73 | +#ifndef NDEBUG |
73 | 74 | static inline int |
74 | 75 | static_builtin_index_is_set(PyTypeObject *self) |
75 | 76 | { |
76 | 77 | return self->tp_subclasses != NULL; |
77 | 78 | } |
| 79 | +#endif |
78 | 80 |
|
79 | 81 | static inline size_t |
80 | 82 | static_builtin_index_get(PyTypeObject *self) |
|
Collapse file
Copy file name to clipboardExpand all lines: Python/ceval_gil.h +2Lines changed: 2 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -133,12 +133,14 @@ static void destroy_gil(struct _gil_runtime_state *gil) |
133 | 133 | _Py_ANNOTATE_RWLOCK_DESTROY(&gil->locked); |
134 | 134 | } |
135 | 135 |
|
| 136 | +#ifdef HAVE_FORK |
136 | 137 | static void recreate_gil(struct _gil_runtime_state *gil) |
137 | 138 | { |
138 | 139 | _Py_ANNOTATE_RWLOCK_DESTROY(&gil->locked); |
139 | 140 | /* XXX should we destroy the old OS resources here? */ |
140 | 141 | create_gil(gil); |
141 | 142 | } |
| 143 | +#endif |
142 | 144 |
|
143 | 145 | static void |
144 | 146 | drop_gil(struct _ceval_runtime_state *ceval, struct _ceval_state *ceval2, |
|