-
Notifications
You must be signed in to change notification settings - Fork 370
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
hw/mcu: Fix compilation with ARM GCC 13
multiple hal_timer_stop() implementations follow same pattern which seems to trigger false-positive (ie entry cannot be used uninitialized here) with ARM GCC 13.2 Compiling repos/apache-mynewt-core/kernel/os/src/os_error.c Error: repos/apache-mynewt-core/hw/mcu/nordic/nrf5340/src/hal_timer.c: In function 'hal_timer_stop': repos/apache-mynewt-core/hw/mcu/nordic/nrf5340/src/hal_timer.c:885:17: error: 'entry' may be used uninitialized [-Werror=maybe-uninitialized] 885 | nrf_timer_set_ocmp((struct nrf5340_hal_timer *) entry->bsp_timer, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 886 | entry->expiry); | ~~~~~~~~~~~~~~ repos/apache-mynewt-core/hw/mcu/nordic/nrf5340/src/hal_timer.c:863:23: note: 'entry' was declared here 863 | struct hal_timer *entry;
- Loading branch information
Showing
8 changed files
with
8 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters