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

ruby-changes:49108

From: mame <ko1@a...>
Date: Thu, 14 Dec 2017 14:54:21 +0900 (JST)
Subject: [ruby-changes:49108] mame:r61223 (trunk): parse.y: suppress "unused variable" warning of ripper.y

mame	2017-12-14 14:54:10 +0900 (Thu, 14 Dec 2017)

  New Revision: 61223

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=61223

  Log:
    parse.y: suppress "unused variable" warning of ripper.y

  Modified files:
    trunk/parse.y
Index: parse.y
===================================================================
--- parse.y	(revision 61222)
+++ parse.y	(revision 61223)
@@ -1553,9 +1553,12 @@ command_asgn	: lhs '=' command_rhs https://github.com/ruby/ruby/blob/trunk/parse.y#L1553
 		    }
 		| primary_value tCOLON2 tCONSTANT tOP_ASGN command_rhs
 		    {
+		    /*%%%*/
 			YYLTYPE location;
 			location.first_loc = @1.first_loc;
 			location.last_loc = @3.last_loc;
+		    /*%
+		    %*/
 			$$ = const_path_field($1, $3, &location);
 			$$ = new_const_op_assign($$, $4, $5, &@$);
 		    }
@@ -2231,9 +2234,12 @@ arg		: lhs '=' arg_rhs https://github.com/ruby/ruby/blob/trunk/parse.y#L2234
 		    }
 		| primary_value tCOLON2 tCONSTANT tOP_ASGN arg_rhs
 		    {
+		    /*%%%*/
 			YYLTYPE location;
 			location.first_loc = @1.first_loc;
 			location.last_loc = @3.last_loc;
+		    /*%
+		    %*/
 			$$ = const_path_field($1, $3, &location);
 			$$ = new_const_op_assign($$, $4, $5, &@$);
 		    }
@@ -4663,9 +4669,12 @@ f_arg_item	: f_arg_asgn https://github.com/ruby/ruby/blob/trunk/parse.y#L4669
 		| tLPAREN f_margs rparen
 		    {
 			ID tid = internal_id();
+		    /*%%%*/
 			YYLTYPE location;
 			location.first_loc = @2.first_loc;
 			location.last_loc = @2.first_loc;
+		    /*%
+		    %*/
 			arg_var(tid);
 		    /*%%%*/
 			if (dyna_in_block()) {

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

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