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

ruby-changes:58619

From: Nobuyoshi <ko1@a...>
Date: Thu, 7 Nov 2019 23:34:20 +0900 (JST)
Subject: [ruby-changes:58619] d62abc47c8 (master): Suppress unused variable warning

https://git.ruby-lang.org/ruby.git/commit/?id=d62abc47c8

From d62abc47c83a79687a41f375338564ece0f403ce Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Thu, 7 Nov 2019 23:33:45 +0900
Subject: Suppress unused variable warning


diff --git a/ext/ripper/tools/dsl.rb b/ext/ripper/tools/dsl.rb
index 925c09b..27ba87f 100644
--- a/ext/ripper/tools/dsl.rb
+++ b/ext/ripper/tools/dsl.rb
@@ -28,7 +28,7 @@ class DSL https://github.com/ruby/ruby/blob/trunk/ext/ripper/tools/dsl.rb#L28
     /#{ re }/ =~ s
 
     # struct parser_params *p
-    p = "p"
+    p = p = "p"
 
     @code = ""
     @last_value = eval(code)
-- 
cgit v0.10.2


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

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