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

ruby-changes:16383

From: nobu <ko1@a...>
Date: Sun, 20 Jun 2010 15:17:39 +0900 (JST)
Subject: [ruby-changes:16383] Ruby:r28365 (trunk): * parse.y (warn_unused_var): use same format as shadowing local

nobu	2010-06-20 15:14:22 +0900 (Sun, 20 Jun 2010)

  New Revision: 28365

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

  Log:
    * parse.y (warn_unused_var): use same format as shadowing local
      variable.

  Modified files:
    trunk/ChangeLog
    trunk/parse.y

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 28364)
+++ ChangeLog	(revision 28365)
@@ -1,5 +1,8 @@
-Sun Jun 20 14:40:50 2010  Nobuyoshi Nakada  <nobu@r...>
+Sun Jun 20 15:14:05 2010  Nobuyoshi Nakada  <nobu@r...>
 
+	* parse.y (warn_unused_var): use same format as shadowing local
+	  variable.
+
 	* parse.y (shadowing_lvar_gen): get rid of adding extra name for
 	  shadowing local variable.  [ruby-dev:41628]
 
Index: parse.y
===================================================================
--- parse.y	(revision 28364)
+++ parse.y	(revision 28365)
@@ -8935,7 +8935,7 @@
     }
     for (i = 0; i < cnt; ++i) {
 	if (!v[i] || (u[i] & LVAR_USED)) continue;
-	rb_compile_warn(ruby_sourcefile, (int)u[i], "assigned but unused variable %s", rb_id2name(v[i]));
+	rb_compile_warn(ruby_sourcefile, (int)u[i], "assigned but unused variable - %s", rb_id2name(v[i]));
     }
 }
 

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

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