diff options
author | Damien George <damien.p.george@gmail.com> | 2017-11-29 15:43:40 +1100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2017-11-29 15:43:40 +1100 |
commit | 3990a52c0f071a7a48cc276f30785930f31eed39 (patch) | |
tree | cf50860bed72e2e332cffd2990aef5d970360370 /py/objstr.c | |
parent | b369c1bb9601f83761257d9ba47adef5cbb9ea7b (diff) |
py: Annotate func defs with NORETURN when their corresp decls have it.
Diffstat (limited to 'py/objstr.c')
-rw-r--r-- | py/objstr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/py/objstr.c b/py/objstr.c index b4f15b38d..30153813d 100644 --- a/py/objstr.c +++ b/py/objstr.c @@ -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 { |