summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-12-31 15:49:07 +0000
committerknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-12-31 15:49:07 +0000
commitae563f61add39ce68850c66a233674b2b71852d9 (patch)
treebad5e556437499eed81885018e8ffd9d3850a588
parent35d90a7d3f9be82af19162325baee2379ce4dd7c (diff)
* ext/digest/digest.c (rb_digest_instance_method_unimpl): Suppress
compiler warnings. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26223 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog5
-rw-r--r--ext/digest/digest.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 1b02d44..a4ea6eb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Fri Jan 1 00:47:57 2010 Akinori MUSHA <knu@iDaemons.org>
+
+ * ext/digest/digest.c (rb_digest_instance_method_unimpl): Suppress
+ compiler warnings.
+
Thu Jan 1 00:00:00 2010 Tanaka Akira <akr@fsij.org>
* tool/mkconfig.rb: generate RbConfig.ruby in rbconfig.rb.
diff --git a/ext/digest/digest.c b/ext/digest/digest.c
index f723bbd..c415ec4 100644
--- a/ext/digest/digest.c
+++ b/ext/digest/digest.c
@@ -76,6 +76,8 @@ rb_digest_s_hexencode(VALUE klass, VALUE str)
return hexencode_str_new(str);
}
+NORETURN(static void rb_digest_instance_method_unimpl(VALUE self, const char *method));
+
/*
* Document-module: Digest::Instance
*
@@ -86,8 +88,6 @@ rb_digest_s_hexencode(VALUE klass, VALUE str)
static void
rb_digest_instance_method_unimpl(VALUE self, const char *method)
{
- VALUE klass = rb_obj_class(self);
-
rb_raise(rb_eRuntimeError, "%s does not implement %s()",
rb_obj_classname(self), method);
}