summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornagachika <nagachika@ruby-lang.org>2024-08-31 18:49:58 +0900
committernagachika <nagachika@ruby-lang.org>2024-08-31 18:49:58 +0900
commitf4847607ee52040fc62531f37001ea1a22acd856 (patch)
treecfd6042c3518741bf14c222bb76c5520942773a6
parentb5bb0ee64b24251f103311e56168b96f5334cc6f (diff)
merge revision(s) f1c78b23313e63eb31a213cc7277b1eb206a581b:
Suppress warning for shadowing outer local variable
-rw-r--r--tool/lib/core_assertions.rb6
-rw-r--r--version.h2
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.
diff --git a/version.h b/version.h
index 047fc7b129..212e603ecf 100644
--- a/version.h
+++ b/version.h
@@ -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"