summaryrefslogtreecommitdiff
path: root/numeric.c
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-05-08 00:55:28 (GMT)
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-05-08 00:55:28 (GMT)
commita6c8e8d15b31f724e9b5d3b8a5b2ff490c6950ef (patch)
tree042b00fef1fc84811325957aa1768ae7d829faab /numeric.c
parent644c36e9a6002913e780385abdea239a7f81c47f (diff)
* 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 3075f89..574112f 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'",