From 97e05dad7ffca0d2fd496fb8e33ddcd7def6748b Mon Sep 17 00:00:00 2001 From: nobu Date: Tue, 24 Jul 2018 05:38:07 +0000 Subject: UNREACHABLE_RETURN * include/ruby/ruby.h (UNREACHABLE_RETURN): UNREACHABLE at the end of non-void functions. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64025 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- struct.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'struct.c') diff --git a/struct.c b/struct.c index cf28fec6fd..7de46980aa 100644 --- a/struct.c +++ b/struct.c @@ -217,7 +217,7 @@ rb_struct_getmember(VALUE obj, ID id) } rb_name_err_raise("`%1$s' is not a struct member", obj, ID2SYM(id)); - UNREACHABLE; + UNREACHABLE_RETURN(Qnil); } static VALUE rb_struct_ref0(VALUE obj) {return RSTRUCT_GET(obj, 0);} -- cgit v1.2.3