Skip to content

Commit 9e0d259

Browse files
Avamanderfpistm
authored andcommitted
Annotate Error_Handler with noreturn to help analysis
Signed-off-by: Avamander <[email protected]>
1 parent 50d589d commit 9e0d259

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)