Skip to content

Commit 68e8136

Browse files
authored
Merge pull request adafruit#10275 from dhalbert/dont-no-return-weak-functions
Don't NORETURN MP_WEAK functions
2 parents 5987adb + 517fd06 commit 68e8136

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

shared-bindings/alarm/time/TimeAlarm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#include "shared-bindings/time/__init__.h"
1515

1616
#if MICROPY_LONGINT_IMPL != MICROPY_LONGINT_IMPL_NONE
17-
NORETURN mp_obj_t MP_WEAK rtc_get_time_source_time(void) {
17+
mp_obj_t MP_WEAK rtc_get_time_source_time(void) {
1818
mp_raise_RuntimeError(MP_ERROR_TEXT("RTC is not supported on this board"));
1919
}
2020
#endif

shared-bindings/time/__init__.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ MP_DEFINE_CONST_FUN_OBJ_0(time_not_implemented_obj, time_not_implemented);
172172
#endif
173173

174174
#if MICROPY_LONGINT_IMPL != MICROPY_LONGINT_IMPL_NONE
175-
NORETURN mp_obj_t MP_WEAK rtc_get_time_source_time(void) {
175+
mp_obj_t MP_WEAK rtc_get_time_source_time(void) {
176176
mp_raise_RuntimeError(MP_ERROR_TEXT("RTC is not supported on this board"));
177177
}
178178

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy