aboutsummaryrefslogtreecommitdiffstats
path: root/ext/-test-/exception
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-07-24 05:38:07 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-07-24 05:38:07 +0000
commit97e05dad7ffca0d2fd496fb8e33ddcd7def6748b (patch)
tree57675d82b85ab2681511240e35b190fc91905dd5 /ext/-test-/exception
parentc78945751f5ea43d6dea732b9d3b5283c2710bce (diff)
downloadruby-97e05dad7ffca0d2fd496fb8e33ddcd7def6748b.tar.gz
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
Diffstat (limited to 'ext/-test-/exception')
-rw-r--r--ext/-test-/exception/enc_raise.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/-test-/exception/enc_raise.c b/ext/-test-/exception/enc_raise.c
index dc8a42cf3f..68d7b4ebc1 100644
--- a/ext/-test-/exception/enc_raise.c
+++ b/ext/-test-/exception/enc_raise.c
@@ -5,7 +5,7 @@ static VALUE
enc_raise(VALUE exc, VALUE encoding, VALUE mesg)
{
rb_enc_raise(rb_to_encoding(encoding), exc, "%s", StringValueCStr(mesg));
- UNREACHABLE;
+ UNREACHABLE_RETURN(Qnil);
}
void