Browse Source

teensy3: usb_dev: Mark _reboot_Teensyduino_() unreachable

When including "core_pins.h":

    teensy3/usb_dev.c: In function '_reboot_Teensyduino_':
    teensy3/usb_dev.c:899:1: warning: 'noreturn' function does return

Fix this by adding a call to __builtin_unreachable().

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
teensy4-core
Geert Uytterhoeven 4 years ago
parent
commit
8dc428ee86
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      teensy3/usb_dev.c

+ 1
- 0
teensy3/usb_dev.c View File

@@ -877,6 +877,7 @@ void _reboot_Teensyduino_(void)
{
// TODO: initialize R0 with a code....
__asm__ volatile("bkpt");
__builtin_unreachable();
}



Loading…
Cancel
Save