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

ruby-changes:16363

From: usa <ko1@a...>
Date: Wed, 16 Jun 2010 18:35:52 +0900 (JST)
Subject: [ruby-changes:16363] Ruby:r28340 (trunk): * parse.y: ripper needs warn_unused_var(), too.

usa	2010-06-16 18:35:35 +0900 (Wed, 16 Jun 2010)

  New Revision: 28340

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

  Log:
    * parse.y: ripper needs warn_unused_var(), too.

  Modified files:
    trunk/ChangeLog
    trunk/parse.y

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 28339)
+++ ChangeLog	(revision 28340)
@@ -1,3 +1,7 @@
+Wed Jun 16 18:34:54 2010  NAKAMURA Usaku  <usa@r...>
+
+	* parse.y: ripper needs warn_unused_var(), too.
+
 Wed Jun 16 18:20:00 2010  Nobuyoshi Nakada  <nobu@r...>
 
 	* parse.y (warn_unused_var): warn unused variables.
Index: parse.y
===================================================================
--- parse.y	(revision 28339)
+++ parse.y	(revision 28340)
@@ -8917,6 +8917,7 @@
     ruby_sourceline = saved_line;
     return node;
 }
+#endif /* !RIPPER */
 
 #define LVAR_USED (1UL << (sizeof(ID) * CHAR_BIT - 1))
 
@@ -8938,7 +8939,6 @@
 	rb_compile_warn(ruby_sourcefile, (int)u[i], "assigned but unused variable %s", rb_id2name(v[i]));
     }
 }
-#endif /* !RIPPER */
 
 static void
 local_push_gen(struct parser_params *parser, int inherit_dvars)

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

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