diff options
author | Nobuyoshi Nakada <[email protected]> | 2020-12-11 00:56:06 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2020-12-11 01:17:15 +0900 |
commit | b72f613210de7b80ce76edb9beef2101d4311d68 (patch) | |
tree | 0207c0ca2c1942745b1b186386452701319554c8 | |
parent | 673fcb7e9a31b0021783dfe73b41eeb5210b6b28 (diff) |
Suppress a "clobbered" warning by gcc on macOS
-rw-r--r-- | load.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1079,10 +1079,10 @@ require_internal(rb_execution_context_t *ec, VALUE fname, int exception) } 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); |