From 517fd0685e3704ed4dcc1cdc4d041e8c6cf20721 Mon Sep 17 00:00:00 2001 From: Dan Halbert Date: Sun, 20 Apr 2025 22:26:05 -0400 Subject: [PATCH] Don't NORETURN MP_WEAK functions --- shared-bindings/alarm/time/TimeAlarm.c | 2 +- shared-bindings/time/__init__.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/shared-bindings/alarm/time/TimeAlarm.c b/shared-bindings/alarm/time/TimeAlarm.c index 49d49c89a8c29..0277c22fc44bf 100644 --- a/shared-bindings/alarm/time/TimeAlarm.c +++ b/shared-bindings/alarm/time/TimeAlarm.c @@ -14,7 +14,7 @@ #include "shared-bindings/time/__init__.h" #if MICROPY_LONGINT_IMPL != MICROPY_LONGINT_IMPL_NONE -NORETURN mp_obj_t MP_WEAK rtc_get_time_source_time(void) { +mp_obj_t MP_WEAK rtc_get_time_source_time(void) { mp_raise_RuntimeError(MP_ERROR_TEXT("RTC is not supported on this board")); } #endif diff --git a/shared-bindings/time/__init__.c b/shared-bindings/time/__init__.c index be936b6d01589..504cd07d90111 100644 --- a/shared-bindings/time/__init__.c +++ b/shared-bindings/time/__init__.c @@ -172,7 +172,7 @@ MP_DEFINE_CONST_FUN_OBJ_0(time_not_implemented_obj, time_not_implemented); #endif #if MICROPY_LONGINT_IMPL != MICROPY_LONGINT_IMPL_NONE -NORETURN mp_obj_t MP_WEAK rtc_get_time_source_time(void) { +mp_obj_t MP_WEAK rtc_get_time_source_time(void) { mp_raise_RuntimeError(MP_ERROR_TEXT("RTC is not supported on this board")); }