diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-07-24 05:38:07 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-07-24 05:38:07 +0000 |
commit | 97e05dad7ffca0d2fd496fb8e33ddcd7def6748b (patch) | |
tree | 57675d82b85ab2681511240e35b190fc91905dd5 /ext/-test-/iter | |
parent | c78945751f5ea43d6dea732b9d3b5283c2710bce (diff) | |
download | ruby-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-/iter')
-rw-r--r-- | ext/-test-/iter/break.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/-test-/iter/break.c b/ext/-test-/iter/break.c index 66ed26a9b8..4d43c5d0cf 100644 --- a/ext/-test-/iter/break.c +++ b/ext/-test-/iter/break.c @@ -5,7 +5,7 @@ iter_break(VALUE self) { rb_iter_break(); - UNREACHABLE; + UNREACHABLE_RETURN(Qnil); } static VALUE @@ -13,7 +13,7 @@ iter_break_value(VALUE self, VALUE val) { rb_iter_break_value(val); - UNREACHABLE; + UNREACHABLE_RETURN(Qnil); } void |