зеркало из https://github.com/github/ruby.git
* 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
This commit is contained in:
Родитель
35d90a7d3f
Коммит
ae563f61ad
|
@ -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.
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче