From: Keith Packard Date: Thu, 6 Aug 2020 17:44:49 +0000 (-0700) Subject: altos: add noreturn attribute to ao_panic X-Git-Tag: 1.9.5~1^2~34 X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=commitdiff_plain;h=9df66f7589b663899e2c729b884eed4b64e5d4da altos: add noreturn attribute to ao_panic Signed-off-by: Keith Packard --- diff --git a/src/kernel/ao.h b/src/kernel/ao.h index be663775..5df4903c 100644 --- a/src/kernel/ao.h +++ b/src/kernel/ao.h @@ -86,7 +86,7 @@ typedef AO_PORT_TYPE ao_port_t; /* Stop the operating system, beeping and blinking the reason */ void -ao_panic(uint8_t reason); +ao_panic(uint8_t reason) __attribute__((noreturn)); /* * ao_romconfig.c diff --git a/src/product/ao_flash_task.c b/src/product/ao_flash_task.c index a680ca18..bbd5675a 100644 --- a/src/product/ao_flash_task.c +++ b/src/product/ao_flash_task.c @@ -26,6 +26,7 @@ void ao_panic(uint8_t reason) { (void) reason; + for (;;); } void