Skip to content
This repository was archived by the owner on Sep 6, 2023. It is now read-only.

Commit 3990a52

Browse files
committed
py: Annotate func defs with NORETURN when their corresp decls have it.
1 parent b369c1b commit 3990a52

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

py/objstr.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2084,7 +2084,7 @@ bool mp_obj_str_equal(mp_obj_t s1, mp_obj_t s2) {
20842084
}
20852085
}
20862086

2087-
STATIC void bad_implicit_conversion(mp_obj_t self_in) {
2087+
STATIC NORETURN void bad_implicit_conversion(mp_obj_t self_in) {
20882088
if (MICROPY_ERROR_REPORTING == MICROPY_ERROR_REPORTING_TERSE) {
20892089
mp_raise_TypeError("can't convert to str implicitly");
20902090
} else {

py/stackctrl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ void mp_stack_set_limit(mp_uint_t limit) {
4848
MP_STATE_THREAD(stack_limit) = limit;
4949
}
5050

51-
void mp_exc_recursion_depth(void) {
51+
NORETURN void mp_exc_recursion_depth(void) {
5252
nlr_raise(mp_obj_new_exception_arg1(&mp_type_RuntimeError,
5353
MP_OBJ_NEW_QSTR(MP_QSTR_maximum_space_recursion_space_depth_space_exceeded)));
5454
}

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