aboutsummaryrefslogtreecommitdiffstats
path: root/numeric.c
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-05-08 00:55:28 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-05-08 00:55:28 +0000
commitf529dd9b103b677be7f25581c2af3101623c298b (patch)
tree042b00fef1fc84811325957aa1768ae7d829faab /numeric.c
parent533d366f2eab41b85d17f4de2acaf234f241ed30 (diff)
downloadruby-f529dd9b103b677be7f25581c2af3101623c298b.tar.gz
* configure.in: add -Wsuggest-attribute=noreturn and suppress warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54943 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'numeric.c')
-rw-r--r--numeric.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/numeric.c b/numeric.c
index 3075f8974a..574112faae 100644
--- a/numeric.c
+++ b/numeric.c
@@ -2684,7 +2684,8 @@ rb_fix2int(VALUE val)
}
#endif
-void
+NORETURN(static void rb_out_of_short(SIGNED_VALUE num));
+static void
rb_out_of_short(SIGNED_VALUE num)
{
rb_raise(rb_eRangeError, "integer %"PRIdVALUE " too %s to convert to `short'",