Suppress warning for shadowing outer local variable

This commit is contained in:
Hiroshi SHIBATA 2023-09-12 13:33:22 +09:00
parent bfa4073dc2
commit ebd44ef570

View file

@ -729,9 +729,9 @@ eom
%w[
CLOCK_THREAD_CPUTIME_ID CLOCK_PROCESS_CPUTIME_ID
CLOCK_MONOTONIC
].find do |clk|
if Process.const_defined?(clk)
[clk.to_sym, Process.const_get(clk)].find do |clk|
].find do |c|
if Process.const_defined?(c)
[c.to_sym, Process.const_get(c)].find do |clk|
Process.clock_gettime(clk)
rescue
# Constants may be defined but not implemented, e.g., mingw.