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 --- variable.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'variable.c') diff --git a/variable.c b/variable.c index 96073df903..383fab3143 100644 --- a/variable.c +++ b/variable.c @@ -1734,7 +1734,7 @@ rb_obj_remove_instance_variable(VALUE obj, VALUE name) not_defined: rb_name_err_raise("instance variable %1$s not defined", obj, name); - UNREACHABLE; + UNREACHABLE_RETURN(Qnil); } NORETURN(static void uninitialized_constant(VALUE, VALUE)); @@ -1805,7 +1805,7 @@ rb_mod_const_missing(VALUE klass, VALUE name) } uninitialized_constant(klass, name); - UNREACHABLE; + UNREACHABLE_RETURN(Qnil); } static void -- cgit v1.2.3