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
@ -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
|
#if PICO_ENTER_USB_BOOT_ON_EXIT
|
||||||
reset_usb_boot(0,0);
|
reset_usb_boot(0,0);
|
||||||
#else
|
#else
|
||||||
|
Loading…
Reference in New Issue
Block a user