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:
Sam Gross 2024-02-14 12:27:39 -05:00 committed by GitHub
parent a2d4281415
commit 17773fcb86
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 0 additions and 11 deletions

View File

@ -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