Closed aws-nslick closed 1 month ago
This is apparently only valid in C since C23 (https://en.cppreference.com/w/c/language/struct_initialization), which makes me wary.
It is only valid in recent C, but GCC has been happy with it for some time. If it doesn't cause warnings on AL2 or U20 with our default debug compiler flags, I'd ship it. It'll make the C++ conversion easier.
Stacked PRs:
624
fix(tree): use empty brace initializers for zero-initialization
prefer
struct foo bar = {}' to
struct foo bar = { 0 }' to avoid -Wmissing-field-initializers warnings. Signed-off-by: Nicholas Sielicki nslick@amazon.com