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

Revert "Suppress gcc11 clobbered warning"

This reverts commit f0f9e77b65.
This commit is contained in:
Samuel Williams 2021-06-14 20:49:43 +12:00
parent 050a895439
commit 25921fe1d6
Notes: git 2021-06-14 19:08:26 +09:00

4
load.c
View file

@ -1049,12 +1049,10 @@ require_internal(rb_execution_context_t *ec, VALUE fname, int exception)
if ((state = EC_EXEC_TAG()) == TAG_NONE) {
long handle;
int found;
volatile VALUE found_path;
RUBY_DTRACE_HOOK(FIND_REQUIRE_ENTRY, RSTRING_PTR(fname));
found = search_required(path, &found_path, rb_feature_p);
found = search_required(path, &path, rb_feature_p);
RUBY_DTRACE_HOOK(FIND_REQUIRE_RETURN, RSTRING_PTR(fname));
path = found_path;
if (found) {
if (!path || !(ftptr = load_lock(RSTRING_PTR(path)))) {