You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
New warning: missing braces around initializer [-Wmissing-braces] #115441
Activity
colesbury commentedon Feb 14, 2024
I think the warning started in #115329. It occurs in the non-debug default build.
My guess is that the GCC doesn't like the definition of
_py_object_state_INIT()anymore:cpython/Include/internal/pycore_runtime_init.h
Lines 215 to 216 in bb791c7
cc @corona10
colesbury commentedon Feb 14, 2024
We can just remove
_py_object_state_INITcompletely and not explicitly initialize.object_state. Zero initialization is fine for that field.pythongh-115441: Fix missing braces warning
gh-115441: Fix missing braces warning (#115460)
Eclips4 commentedon Feb 14, 2024
Thanks Sam for fixing!