-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(tree): use empty brace initializers for zero-initialization #594
Conversation
fd644c1
to
80a8c2c
Compare
f7f49ac
to
af08352
Compare
1da3bb4
to
0e1f044
Compare
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok
prefer `struct foo bar = {}' to `struct foo bar = { 0 }' to avoid -Wmissing-field-initializers warnings. stack-info: PR: aws#594, branch: aws-nslick/stack/35
0e1f044
to
5502846
Compare
5502846
to
6b9309a
Compare
6b9309a
to
7fd55d0
Compare
prefer `struct foo bar = {}' to `struct foo bar = { 0 }' to avoid -Wmissing-field-initializers warnings. stack-info: PR: aws#594, branch: aws-nslick/stack/35
prefer `struct foo bar = {}' to `struct foo bar = { 0 }' to avoid -Wmissing-field-initializers warnings. stack-info: PR: aws#594, branch: aws-nslick/stack/35
prefer `struct foo bar = {}' to `struct foo bar = { 0 }' to avoid -Wmissing-field-initializers warnings. stack-info: PR: aws#594, branch: aws-nslick/stack/35 Signed-off-by: Nicholas Sielicki <[email protected]>
prefer `struct foo bar = {}' to `struct foo bar = { 0 }' to avoid -Wmissing-field-initializers warnings. stack-info: PR: aws#594, branch: aws-nslick/stack/35 Signed-off-by: Nicholas Sielicki <[email protected]>
prefer `struct foo bar = {}' to `struct foo bar = { 0 }' to avoid -Wmissing-field-initializers warnings. stack-info: PR: #594, branch: aws-nslick/stack/35 Signed-off-by: Nicholas Sielicki <[email protected]>
7fd55d0
to
33adec5
Compare
) prefer `struct foo bar = {}' to `struct foo bar = { 0 }' to avoid -Wmissing-field-initializers warnings. Signed-off-by: Nicholas Sielicki <[email protected]>
Stacked PRs:
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 [email protected]