From 2cb274ca77815eab565106d16f2e7592cd5c3650 Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Mon, 25 Aug 2014 13:55:16 -0400 Subject: panicf doesn't return so why not tell GCC and $AVE : Change-Id: I6096576f539bfb02b340b82fabc5019f6756b722 --- firmware/export/panic.h | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'firmware/export/panic.h') diff --git a/firmware/export/panic.h b/firmware/export/panic.h index 7767c675cf..8e35bfff16 100644 --- a/firmware/export/panic.h +++ b/firmware/export/panic.h @@ -25,9 +25,6 @@ #include "config.h" #include "gcc_extensions.h" -#if defined(CPU_ARM) -void panicf( const char *fmt, ... ) __attribute__ ((naked)) ATTRIBUTE_PRINTF(1, 2); -#else -void panicf( const char *fmt, ... ) ATTRIBUTE_PRINTF(1, 2); -#endif +void panicf( const char *fmt, ... ) ATTRIBUTE_PRINTF(1, 2) NORETURN_ATTR; + #endif /* __PANIC_H__ */ -- cgit v1.2.3