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

@@ -2084,7 +2084,7 @@ bool mp_obj_str_equal(mp_obj_t s1, mp_obj_t s2) {
}
}
STATIC void bad_implicit_conversion(mp_obj_t self_in) {
STATIC NORETURN void bad_implicit_conversion(mp_obj_t self_in) {
if (MICROPY_ERROR_REPORTING == MICROPY_ERROR_REPORTING_TERSE) {
mp_raise_TypeError("can't convert to str implicitly");
} else {