diff options
| author | nagachika <nagachika@ruby-lang.org> | 2024-08-31 18:49:58 +0900 |
|---|---|---|
| committer | nagachika <nagachika@ruby-lang.org> | 2024-08-31 18:49:58 +0900 |
| commit | f4847607ee52040fc62531f37001ea1a22acd856 (patch) | |
| tree | cfd6042c3518741bf14c222bb76c5520942773a6 | |
| parent | b5bb0ee64b24251f103311e56168b96f5334cc6f (diff) | |
merge revision(s) f1c78b23313e63eb31a213cc7277b1eb206a581b:
Suppress warning for shadowing outer local variable
| -rw-r--r-- | tool/lib/core_assertions.rb | 6 | ||||
| -rw-r--r-- | version.h | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/tool/lib/core_assertions.rb b/tool/lib/core_assertions.rb index 4887d944c5..2c8bc7f359 100644 --- a/tool/lib/core_assertions.rb +++ b/tool/lib/core_assertions.rb @@ -741,9 +741,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. @@ -11,7 +11,7 @@ # define RUBY_VERSION_MINOR RUBY_API_VERSION_MINOR #define RUBY_VERSION_TEENY 5 #define RUBY_RELEASE_DATE RUBY_RELEASE_YEAR_STR"-"RUBY_RELEASE_MONTH_STR"-"RUBY_RELEASE_DAY_STR -#define RUBY_PATCHLEVEL 219 +#define RUBY_PATCHLEVEL 220 #include "ruby/version.h" #include "ruby/internal/abi.h" |
