From 464b05481d9687c75784d816cea7d9f0d34a7926 Mon Sep 17 00:00:00 2001 From: Rob Riggs Date: Sat, 22 Feb 2020 19:06:26 -0600 Subject: [PATCH] Add noreturn attribute to _Error_Handler() to squelch warnings. --- Inc/main.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Inc/main.h b/Inc/main.h index 5cc3cf8..b39688d 100644 --- a/Inc/main.h +++ b/Inc/main.h @@ -187,7 +187,7 @@ void SysClock4(void); #ifdef __cplusplus extern "C" { #endif -void _Error_Handler(char *, int); +void _Error_Handler(char *, int) __attribute__ ((noreturn)); #define Error_Handler() _Error_Handler(__FILE__, __LINE__) #ifdef __cplusplus