Skip to content

Commit 17773fc

Browse files
authored
gh-115441: Fix missing braces warning (#115460)
Removes `_py_object_state_INIT`. We want to initialize the `object_state` field to zero.
1 parent a2d4281 commit 17773fc

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

Include/internal/pycore_runtime_init.h

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,6 @@ extern PyTypeObject _PyExc_MemoryError;
169169
{ .threshold = 10, }, \
170170
}, \
171171
}, \
172-
.object_state = _py_object_state_INIT(INTERP), \
173172
.dtoa = _dtoa_state_INIT(&(INTERP)), \
174173
.dict_state = _dict_state_INIT, \
175174
.func_state = { \
@@ -206,16 +205,6 @@ extern PyTypeObject _PyExc_MemoryError;
206205
.context_ver = 1, \
207206
}
208207

209-
#ifdef Py_TRACE_REFS
210-
# define _py_object_state_INIT(INTERP) \
211-
{ \
212-
.refchain = NULL, \
213-
}
214-
#else
215-
# define _py_object_state_INIT(INTERP) \
216-
{ 0 }
217-
#endif
218-
219208

220209
// global objects
221210

0 commit comments

Comments
 (0)