diff options
| author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2023-09-12 13:33:22 +0900 |
|---|---|---|
| committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2024-09-10 16:00:29 +0900 |
| commit | ebd44ef57043eddabf8cd06e5348d3d4625063f0 (patch) | |
| tree | ba6aba5df67c2ef9bab474f85666bf8141db1ed8 | |
| parent | bfa4073dc21cd313a0b8e8e008868dd913ef8e5f (diff) | |
Suppress warning for shadowing outer local variable
| -rw-r--r-- | tool/lib/core_assertions.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tool/lib/core_assertions.rb b/tool/lib/core_assertions.rb index 7845d23729..fe625fc965 100644 --- a/tool/lib/core_assertions.rb +++ b/tool/lib/core_assertions.rb @@ -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. |
