mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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:
parent
35d90a7d3f
commit
ae563f61ad
2 changed files with 7 additions and 2 deletions
|
@ -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>
|
Thu Jan 1 00:00:00 2010 Tanaka Akira <akr@fsij.org>
|
||||||
|
|
||||||
* tool/mkconfig.rb: generate RbConfig.ruby in rbconfig.rb.
|
* 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);
|
return hexencode_str_new(str);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
NORETURN(static void rb_digest_instance_method_unimpl(VALUE self, const char *method));
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Document-module: Digest::Instance
|
* Document-module: Digest::Instance
|
||||||
*
|
*
|
||||||
|
@ -86,8 +88,6 @@ rb_digest_s_hexencode(VALUE klass, VALUE str)
|
||||||
static void
|
static void
|
||||||
rb_digest_instance_method_unimpl(VALUE self, const char *method)
|
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_raise(rb_eRuntimeError, "%s does not implement %s()",
|
||||||
rb_obj_classname(self), method);
|
rb_obj_classname(self), method);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue