Skip to content

Commit

Permalink
pythongh-115441: Fix missing braces warning (python#115460)
Browse files Browse the repository at this point in the history
Removes `_py_object_state_INIT`. We want to initialize the `object_state` field to zero.
  • Loading branch information
colesbury authored Feb 14, 2024
1 parent a2d4281 commit 17773fc
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions Include/internal/pycore_runtime_init.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 = { \
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 17773fc

Please sign in to comment.