mirror of
https://github.com/Fishwaldo/pico-sdk.git
synced 2025-03-16 03:51:24 +00:00
Add __attribute__((noreturn))
to _exit
(#707)
Fixes the following compiler warning ``` .../vendor/pico-sdk/src/rp2_common/pico_runtime/runtime.c: In function 'panic': .../pico-sdk/src/rp2_common/pico_runtime/runtime.c:284:1: warning: 'noreturn' function does return 284 | } | ^ ```
This commit is contained in:
parent
d831eff5a2
commit
91462e430a
1 changed files with 1 additions and 1 deletions
|
@ -175,7 +175,7 @@ void runtime_init(void) {
|
|||
|
||||
}
|
||||
|
||||
void _exit(__unused int status) {
|
||||
void __attribute__((noreturn)) _exit(__unused int status) {
|
||||
#if PICO_ENTER_USB_BOOT_ON_EXIT
|
||||
reset_usb_boot(0,0);
|
||||
#else
|
||||
|
|
Loading…
Add table
Reference in a new issue