Fix Alarm app crashing on buttonpress#816
Fix Alarm app crashing on buttonpress#816JF002 merged 1 commit intoInfiniTimeOrg:developfrom Riksu9000:fix_alarm_crash
Conversation
|
Thanks, I came in here to open this same PR this morning! I've been testing the same fix for several days and the alarm is no longer crashing. |
|
Why not initialize them all to |
Everything else gets initialized in the constructor and we don't initialize them to nullptr in other screens either. |
Do you have any ideas how such uninitialized variables could be better avoided? Any warnings? |
There was a warning that the constructor doesn't initialize those variables. |
What was the name? Maybe it should be turned into an error with |
Oh not a compilation warning but a clang-tidy one. This one https://clang.llvm.org/extra/clang-tidy/checks/cppcoreguidelines-pro-type-member-init.html |
|
Hi, I had a pre 1.7 DFU without this PR and the Alarm app was constantly crashing. |
|
PR is fixing the issue 👍 |
|
Thanks! Just in time for 1.7! (Initially, I was going to release it sooner, but I was too busy these last few days...). |
Fixes #770
This should be fixed before releasing 1.7.0