Skip to content

Commit 8178fad

Browse files
authored
Annotate Error_Handler with noreturn to help analysis
Signed-off-by: Avamander <avamander@gmail.com>
1 parent 2380458 commit 8178fad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/SrcWrapper/src/stm32/stm32_def.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ extern "C" {
1111
* @retval None
1212
*/
1313
#if !defined(NDEBUG)
14-
WEAK void _Error_Handler(const char *msg, int val)
14+
__attribute__((noreturn)) WEAK void _Error_Handler(const char *msg, int val)
1515
{
1616
/* User can add his own implementation to report the HAL error return state */
1717
core_debug("Error: %s (%i)\n", msg, val);

0 commit comments

Comments
 (0)