diff options
author | Samuel Williams <[email protected]> | 2021-06-14 20:49:43 +1200 |
---|---|---|
committer | Samuel Williams <[email protected]> | 2021-06-14 22:07:59 +1200 |
commit | 25921fe1d67e4bdd2370e1e9c26f1ed4533af73e (patch) | |
tree | 9e629460884ca6313573e9e1179a9f937deda150 /load.c | |
parent | 050a89543952a2c9e7c9bc938f4fdb538f6c9278 (diff) |
Revert "Suppress gcc11 clobbered warning"
This reverts commit f0f9e77b65990001bd2acb42e1c6b673f6324425.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/4570
Diffstat (limited to 'load.c')
-rw-r--r-- | load.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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)))) { |