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

ruby-changes:14395

From: knu <ko1@a...>
Date: Fri, 1 Jan 2010 00:54:37 +0900 (JST)
Subject: [ruby-changes:14395] Ruby:r26225 (ruby_1_8): * ext/digest/digest.c (rb_digest_instance_method_unimpl): Suppress

knu	2010-01-01 00:52:39 +0900 (Fri, 01 Jan 2010)

  New Revision: 26225

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

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

  Modified files:
    branches/ruby_1_8/ChangeLog
    branches/ruby_1_8/ext/digest/digest.c

Index: ruby_1_8/ext/digest/digest.c
===================================================================
--- ruby_1_8/ext/digest/digest.c	(revision 26224)
+++ ruby_1_8/ext/digest/digest.c	(revision 26225)
@@ -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);
 }
Index: ruby_1_8/ChangeLog
===================================================================
--- ruby_1_8/ChangeLog	(revision 26224)
+++ ruby_1_8/ChangeLog	(revision 26225)
@@ -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.
+
 Fri Jan  1 00:36:55 2010  Akinori MUSHA  <knu@i...>
 
 	* string.c: Add instance methods to Symbol: succ, next, <=>,

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

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