-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Add default initializers to cluster-objects structs. #13678
Add default initializers to cluster-objects structs. #13678
Conversation
PR #13678: Size comparison from 4f84672 to 11c6647 Increases (9 builds for esp32, linux, mbed, p6, telink)
Full report (13 builds for esp32, linux, mbed, p6, telink)
|
11c6647
to
b97a4cd
Compare
PR #13678: Size comparison from 150c479 to b97a4cd Increases (22 builds for efr32, esp32, k32w, linux, nrfconnect, p6, qpg, telink)
Full report (32 builds for efr32, esp32, k32w, linux, mbed, nrfconnect, p6, qpg, telink)
|
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.
Great!
Can you fix test-cluster-server.cpp
initialization of some of the globals to now not have to explicitly initialize the fields in some of those structs?
These were missed when adding initializers to other things, because the structs' members are defined in a separate file now.
b97a4cd
to
0880fda
Compare
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.
Changes requested: non-typesafe cast of 0 into various enums seems error prone/hard to read. Please use actual enum values.
PR #13678: Size comparison from 41d3a6c to 0880fda Increases (21 builds for efr32, esp32, k32w, mbed, nrfconnect, p6, qpg, telink)
Decreases (4 builds for esp32, mbed, p6)
Full report (30 builds for efr32, esp32, k32w, mbed, nrfconnect, p6, qpg, telink)
|
fast track: change and checkmark by domain owner. Delta is obviously a net improvement over what we had before (even if considering more could be done, it is already a net positive). |
These were missed when adding initializers to other things, because
the structs' members are defined in a separate file now.
Problem
Struct members left with random values.
Change overview
Initialize them.
Testing
Examined generated code and made sure we are now initializing struct members.