summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSam Gross <colesbury@gmail.com>2024-02-14 17:27:39 (GMT)
committerGitHub <noreply@github.com>2024-02-14 17:27:39 (GMT)
commit17773fcb863d5aef299487b07207c2ced8e9477e (patch)
treed1dff8aa78ad86a84d339585d9441f7b26c50f02
parenta2d4281415e67c62f91363376db97eb66a9fb716 (diff)
downloadcpython-17773fcb863d5aef299487b07207c2ced8e9477e.zip
cpython-17773fcb863d5aef299487b07207c2ced8e9477e.tar.gz
cpython-17773fcb863d5aef299487b07207c2ced8e9477e.tar.bz2
gh-115441: Fix missing braces warning (#115460)
Removes `_py_object_state_INIT`. We want to initialize the `object_state` field to zero.
-rw-r--r--Include/internal/pycore_runtime_init.h11
1 files changed, 0 insertions, 11 deletions
diff --git a/Include/internal/pycore_runtime_init.h b/Include/internal/pycore_runtime_init.h
index 571a7d6..7a05c10 100644
--- a/Include/internal/pycore_runtime_init.h
+++ b/Include/internal/pycore_runtime_init.h
@@ -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