From ae563f61add39ce68850c66a233674b2b71852d9 Mon Sep 17 00:00:00 2001 From: knu Date: Thu, 31 Dec 2009 15:49:07 +0000 Subject: [PATCH] * 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 --- ChangeLog | 5 +++++ ext/digest/digest.c | 4 ++-- 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 + + * ext/digest/digest.c (rb_digest_instance_method_unimpl): Suppress + compiler warnings. + Thu Jan 1 00:00:00 2010 Tanaka Akira * 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); }