From 17773fcb863d5aef299487b07207c2ced8e9477e Mon Sep 17 00:00:00 2001 From: Sam Gross Date: Wed, 14 Feb 2024 12:27:39 -0500 Subject: gh-115441: Fix missing braces warning (#115460) Removes `_py_object_state_INIT`. We want to initialize the `object_state` field to zero. --- Include/internal/pycore_runtime_init.h | 11 ----------- 1 file changed, 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 -- cgit v0.12