Skip to content

Commit 93e1b89

Browse files
committed
mark hardfault handler as not returning
1 parent 55b0f15 commit 93e1b89

File tree

1 file changed

+1
-1
lines changed
  • ports/raspberrypi/supervisor

1 file changed

+1
-1
lines changed

ports/raspberrypi/supervisor/port.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,7 @@ void port_idle_until_interrupt(void) {
572572
/**
573573
* \brief Default interrupt handler for unused IRQs.
574574
*/
575-
extern void isr_hardfault(void); // provide a prototype to avoid a missing-prototypes diagnostic
575+
extern NORETURN void isr_hardfault(void); // provide a prototype to avoid a missing-prototypes diagnostic
576576
__attribute__((used)) void __not_in_flash_func(isr_hardfault)(void) {
577577
// Only safe mode from core 0 which is running CircuitPython. Core 1 faulting
578578
// should not be fatal to CP. (Fingers crossed.)

0 commit comments

Comments
 (0)