[前][次][番号順一覧][スレッド一覧]

ruby-changes:64075

From: Nobuyoshi <ko1@a...>
Date: Fri, 11 Dec 2020 01:19:43 +0900 (JST)
Subject: [ruby-changes:64075] b72f613210 (master): Suppress a "clobbered" warning by gcc on macOS

https://git.ruby-lang.org/ruby.git/commit/?id=b72f613210

From b72f613210de7b80ce76edb9beef2101d4311d68 Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Fri, 11 Dec 2020 00:56:06 +0900
Subject: Suppress a "clobbered" warning by gcc on macOS


diff --git a/load.c b/load.c
index 1c17587..cf3adcb 100644
--- a/load.c
+++ b/load.c
@@ -1079,10 +1079,10 @@ require_internal(rb_execution_context_t *ec, VALUE fname, int exception) https://github.com/ruby/ruby/blob/trunk/load.c#L1079
     }
     EC_POP_TAG();
 
-    th = rb_ec_thread_ptr(ec);
-    th->top_self = self;
-    th->top_wrapper = wrapper;
-    if (reset_ext_config) ext_config_pop(th, &prev_ext_config);
+    rb_thread_t *th2 = rb_ec_thread_ptr(ec);
+    th2->top_self = self;
+    th2->top_wrapper = wrapper;
+    if (reset_ext_config) ext_config_pop(th2, &prev_ext_config);
 
     if (ftptr) load_unlock(RSTRING_PTR(path), !state);
 
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]