summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 1b02d441e9..a4ea6eb45f 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 f723bbdbd0..c415ec4e7b 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);
}