diff options
author | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-12-14 05:54:10 +0000 |
---|---|---|
committer | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-12-14 05:54:10 +0000 |
commit | bf9c947dd868fbdba18d6efcf5e84ce9fb9f3642 (patch) | |
tree | 0e1491284aac5c62878f547d6bdb8852e7b12086 | |
parent | 626ca9ff3ef1f175a06383840dab63a13c73665e (diff) |
parse.y: suppress "unused variable" warning of ripper.y
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61223 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | parse.y | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -1553,9 +1553,12 @@ command_asgn : lhs '=' command_rhs } | 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 } | 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 | 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()) { |