From 5d430c1b34b6162d4cfbd472fae09e6ea282f3a3 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Mon, 11 May 2020 00:24:14 +0900 Subject: Added more NORETURN declarations --- cont.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'cont.c') diff --git a/cont.c b/cont.c index ac761ac0b9..38a1be12da 100644 --- a/cont.c +++ b/cont.c @@ -1610,6 +1610,8 @@ rollback_ensure_stack(VALUE self,rb_ensure_list_t *current,rb_ensure_entry_t *ta } } +NORETURN(static VALUE rb_cont_call(int argc, VALUE *argv, VALUE contval)); + /* * call-seq: * cont.call(args, ...) @@ -1648,7 +1650,7 @@ rb_cont_call(int argc, VALUE *argv, VALUE contval) cont->value = make_passing_arg(argc, argv); cont_restore_0(cont, &contval); - return Qnil; /* unreachable */ + UNREACHABLE_RETURN(Qnil); } /*********/ -- cgit v1.2.3