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

ruby-changes:18054

From: nobu <ko1@a...>
Date: Sat, 4 Dec 2010 08:50:24 +0900 (JST)
Subject: [ruby-changes:18054] Ruby:r30075 (trunk): * ext/iconv/iconv.c (Init_iconv): no warnings if $VERBOSE is nil.

nobu	2010-12-04 08:50:13 +0900 (Sat, 04 Dec 2010)

  New Revision: 30075

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

  Log:
    * ext/iconv/iconv.c (Init_iconv): no warnings if $VERBOSE is nil.

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

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 30074)
+++ ChangeLog	(revision 30075)
@@ -1,3 +1,7 @@
+Sat Dec  4 08:50:10 2010  Nobuyoshi Nakada  <nobu@r...>
+
+	* ext/iconv/iconv.c (Init_iconv): no warnings if $VERBOSE is nil.
+
 Sat Dec  4 08:25:15 2010  Nobuyoshi Nakada  <nobu@r...>
 
 	* vm_insnhelper.c (vm_call_method): revert r30064 and r30071,
Index: ext/iconv/iconv.c
===================================================================
--- ext/iconv/iconv.c	(revision 30074)
+++ ext/iconv/iconv.c	(revision 30075)
@@ -1208,7 +1208,9 @@
 {
     VALUE rb_cIconv = rb_define_class("Iconv", rb_cData);
 
-    warn_deprecated();
+    if (!NIL_P(ruby_verbose)) {
+	warn_deprecated();
+    }
     rb_define_alloc_func(rb_cIconv, iconv_s_allocate);
     rb_define_singleton_method(rb_cIconv, "open", iconv_s_open, -1);
     rb_define_singleton_method(rb_cIconv, "iconv", iconv_s_iconv, -1);

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

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