mirror of https://github.com/python/cpython
gh-115441: Fix missing braces warning (#115460)
Removes `_py_object_state_INIT`. We want to initialize the `object_state` field to zero.
This commit is contained in:
parent
a2d4281415
commit
17773fcb86
|
@ -169,7 +169,6 @@ extern PyTypeObject _PyExc_MemoryError;
|
|||
{ .threshold = 10, }, \
|
||||
}, \
|
||||
}, \
|
||||
.object_state = _py_object_state_INIT(INTERP), \
|
||||
.dtoa = _dtoa_state_INIT(&(INTERP)), \
|
||||
.dict_state = _dict_state_INIT, \
|
||||
.func_state = { \
|
||||
|
@ -206,16 +205,6 @@ extern PyTypeObject _PyExc_MemoryError;
|
|||
.context_ver = 1, \
|
||||
}
|
||||
|
||||
#ifdef Py_TRACE_REFS
|
||||
# define _py_object_state_INIT(INTERP) \
|
||||
{ \
|
||||
.refchain = NULL, \
|
||||
}
|
||||
#else
|
||||
# define _py_object_state_INIT(INTERP) \
|
||||
{ 0 }
|
||||
#endif
|
||||
|
||||
|
||||
// global objects
|
||||
|
||||
|
|
Loading…
Reference in New Issue