summaryrefslogtreecommitdiff
path: root/compile.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2020-05-11 00:24:14 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2020-05-11 00:40:14 +0900
commit5d430c1b34b6162d4cfbd472fae09e6ea282f3a3 (patch)
tree23b5b2a1e472c04100acabb934cff1a6639ada5b /compile.c
parenta1e1fdca091bdd20ccfd69b682e8f1f6f51fa4f3 (diff)
Added more NORETURN declarations
Diffstat (limited to 'compile.c')
-rw-r--r--compile.c4
1 files changed, 3 insertions, 1 deletions
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