ruby-changes:56304
From: Nobuyoshi <ko1@a...>
Date: Mon, 1 Jul 2019 00:23:21 +0900 (JST)
Subject: [ruby-changes:56304] Nobuyoshi Nakada: 9cb58f1698 (master): Suppress unused variable warning
https://git.ruby-lang.org/ruby.git/commit/?id=9cb58f1698 From 9cb58f1698b4a11af24d1129eb6b85d27e0a7145 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Sun, 30 Jun 2019 22:48:39 +0900 Subject: Suppress unused variable warning diff --git a/test/racc/testscanner.rb b/test/racc/testscanner.rb index 471c6ba..d787751 100644 --- a/test/racc/testscanner.rb +++ b/test/racc/testscanner.rb @@ -30,7 +30,7 @@ testdata( File.dirname($0) + '/scandata', ARGV ).each do |file| https://github.com/ruby/ruby/blob/trunk/test/racc/testscanner.rb#L30 begin ok = File.read(file) s = Racc::GrammarFileScanner.new( ok ) - sym, (val, lineno) = s.scan + sym, (val, _lineno) = s.scan if printonly then $stderr.puts $stderr.puts val -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/