1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Suppress a "clobbered" warning by gcc on macOS

This commit is contained in:
Nobuyoshi Nakada 2020-12-11 00:56:06 +09:00
parent 673fcb7e9a
commit b72f613210
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6

8
load.c
View file

@ -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);