py: Annotate func defs with NORETURN when their corresp decls have it.

This commit is contained in:
Damien George
2017-11-29 15:43:40 +11:00
parent b369c1bb96
commit 3990a52c0f
2 changed files with 2 additions and 2 deletions

View File

@@ -48,7 +48,7 @@ void mp_stack_set_limit(mp_uint_t limit) {
MP_STATE_THREAD(stack_limit) = limit;
}
void mp_exc_recursion_depth(void) {
NORETURN void mp_exc_recursion_depth(void) {
nlr_raise(mp_obj_new_exception_arg1(&mp_type_RuntimeError,
MP_OBJ_NEW_QSTR(MP_QSTR_maximum_space_recursion_space_depth_space_exceeded)));
}