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

ruby-changes:25791

From: nobu <ko1@a...>
Date: Mon, 26 Nov 2012 12:16:03 +0900 (JST)
Subject: [ruby-changes:25791] nobu:r37848 (trunk): string.c: suppress warnings

nobu	2012-11-26 12:12:25 +0900 (Mon, 26 Nov 2012)

  New Revision: 37848

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

  Log:
    string.c: suppress warnings
    
    * string.c (rb_str_enumerate_{lines,chars,codepoints}): suppress
      uninitialized variable warnings.

  Modified files:
    trunk/string.c

Index: string.c
===================================================================
--- string.c	(revision 37847)
+++ string.c	(revision 37848)
@@ -6126,6 +6126,7 @@
 #else
 	    rb_warning("passing a block to String#lines is deprecated");
 	    wantarray = 0;
+	    ary = 0;
 #endif
 	}
     }
@@ -6405,6 +6406,7 @@
 #else
 	    rb_warning("passing a block to String#chars is deprecated");
 	    wantarray = 0;
+	    ary = 0;
 #endif
 	}
     }
@@ -6505,6 +6507,7 @@
 #else
 	    rb_warning("passing a block to String#codepoints is deprecated");
 	    wantarray = 0;
+	    ary = 0;
 #endif
 	}
     }

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

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