[前][次][番号順一覧][スレッド一覧]

ruby-changes:14393

From: knu <ko1@a...>
Date: Fri, 1 Jan 2010 00:49:28 +0900 (JST)
Subject: [ruby-changes:14393] Ruby:r26223 (trunk): * ext/digest/digest.c (rb_digest_instance_method_unimpl): Suppress

knu	2010-01-01 00:49:07 +0900 (Fri, 01 Jan 2010)

  New Revision: 26223

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=26223

  Log:
    * ext/digest/digest.c (rb_digest_instance_method_unimpl): Suppress
      compiler warnings.

  Modified files:
    trunk/ChangeLog
    trunk/ext/digest/digest.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 26222)
+++ ChangeLog	(revision 26223)
@@ -1,3 +1,8 @@
+Fri Jan  1 00:47:57 2010  Akinori MUSHA  <knu@i...>
+
+	* ext/digest/digest.c (rb_digest_instance_method_unimpl): Suppress
+	  compiler warnings.
+
 Thu Jan  1 00:00:00 2010  Tanaka Akira  <akr@f...>
 
 	* tool/mkconfig.rb: generate RbConfig.ruby in rbconfig.rb.
Index: ext/digest/digest.c
===================================================================
--- ext/digest/digest.c	(revision 26222)
+++ ext/digest/digest.c	(revision 26223)
@@ -76,6 +76,8 @@
     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 @@
 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);
 }

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]