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

ruby-changes:62903

From: aycabta <ko1@a...>
Date: Sat, 12 Sep 2020 10:08:52 +0900 (JST)
Subject: [ruby-changes:62903] ae508633b7 (master): Suppress "assigned but unused variable" warning

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

From ae508633b7798dd600fd5c6d5095af5361b28c70 Mon Sep 17 00:00:00 2001
From: aycabta <aycabta@g...>
Date: Sat, 12 Sep 2020 10:07:18 +0900
Subject: Suppress "assigned but unused variable" warning


diff --git a/lib/reline/windows.rb b/lib/reline/windows.rb
index a7bd381..2a406e3 100644
--- a/lib/reline/windows.rb
+++ b/lib/reline/windows.rb
@@ -254,7 +254,7 @@ class Reline::Windows https://github.com/ruby/ruby/blob/trunk/lib/reline/windows.rb#L254
     return if @@GetConsoleScreenBufferInfo.call(@@hConsoleHandle, csbi) == 0
     buffer_width = csbi[0, 2].unpack('S').first
     attributes = csbi[8, 2].unpack('S').first
-    window_left, window_top, window_right, window_bottom = *csbi[10,8].unpack('S*')
+    _window_left, window_top, _window_right, window_bottom = *csbi[10,8].unpack('S*')
     fill_length = buffer_width * (window_bottom - window_top + 1)
     screen_topleft = window_top * 65536
     written = 0.chr * 4
-- 
cgit v0.10.2


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

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