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:
Jonathan Reichelt Gjertsen 2022-01-19 16:25:40 +01:00 committed by GitHub
parent d831eff5a2
commit 91462e430a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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