ruby-changes:63550
From: Yusuke <ko1@a...>
Date: Sun, 8 Nov 2020 23:34:44 +0900 (JST)
Subject: [ruby-changes:63550] fcf8b9ef72 (master): test/resolv/test_dns.rb: suppress "assigned but unused variable"
https://git.ruby-lang.org/ruby.git/commit/?id=fcf8b9ef72 From fcf8b9ef72aba39e10c5faa134a01ec37ec0bce6 Mon Sep 17 00:00:00 2001 From: Yusuke Endoh <mame@r...> Date: Sun, 8 Nov 2020 23:32:44 +0900 Subject: test/resolv/test_dns.rb: suppress "assigned but unused variable" diff --git a/test/resolv/test_dns.rb b/test/resolv/test_dns.rb index 617babf..d3c4b1f 100644 --- a/test/resolv/test_dns.rb +++ b/test/resolv/test_dns.rb @@ -156,7 +156,7 @@ class TestResolvDNS < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/resolv/test_dns.rb#L156 ra = (flags & 0x0080) >> 7 z = (flags & 0x0070) >> 4 rcode = flags & 0x000f - rest = msg[12..-1] + _rest = msg[12..-1] questions = msg.bytes[12..-1] labels = [] -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/