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 --- compile.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'compile.c') diff --git a/compile.c b/compile.c index 97548b422f..6f5569fd88 100644 --- a/compile.c +++ b/compile.c @@ -10856,11 +10856,13 @@ ibf_dump_object_unsupported(struct ibf_dump *dump, VALUE obj) rb_raise(rb_eNotImpError, "ibf_dump_object_unsupported: %s", buff); } +NORETURN(static VALUE ibf_load_object_unsupported(const struct ibf_load *load, const struct ibf_object_header *header, ibf_offset_t offset)); + static VALUE ibf_load_object_unsupported(const struct ibf_load *load, const struct ibf_object_header *header, ibf_offset_t offset) { rb_raise(rb_eArgError, "unsupported"); - return Qnil; + UNREACHABLE_RETURN(Qnil); } static void -- cgit v1.2.3