summaryrefslogtreecommitdiff
path: root/ext/digest/digest.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/digest/digest.c')
-rw-r--r--ext/digest/digest.c4
1 files changed, 2 insertions, 2 deletions
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);
}