diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2022-10-12 22:47:15 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-12 22:47:15 +0200 |
commit | 9259007b603c4f5ec98597a4e1bf63e23cb660a6 (patch) | |
tree | 89429633a9ea1c07b766b3a8a4f0510b6999a3e7 /vespalib | |
parent | 50191c6f48492860c4933b49bf7955de6506f557 (diff) | |
parent | c1a04943ed360be4c0d7c3c33e4283c8e654cc6b (diff) |
Merge pull request #24412 from vespa-engine/toregge/avoid-shadowing-warning-with-clang-15
Avoid shadowing warning with clang 15.
Diffstat (limited to 'vespalib')
-rw-r--r-- | vespalib/src/vespa/vespalib/coro/lazy.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vespalib/src/vespa/vespalib/coro/lazy.h b/vespalib/src/vespa/vespalib/coro/lazy.h index 3da53fee98c..13a3000294b 100644 --- a/vespalib/src/vespa/vespalib/coro/lazy.h +++ b/vespalib/src/vespa/vespalib/coro/lazy.h @@ -19,8 +19,8 @@ public: struct awaiter { bool await_ready() const noexcept { return false; } std::coroutine_handle<> await_suspend(Handle handle) const noexcept { - auto waiter = handle.promise().waiter; - return waiter ? waiter : std::noop_coroutine(); + auto promise_waiter = handle.promise().waiter; + return promise_waiter ? promise_waiter : std::noop_coroutine(); } void await_resume() const noexcept {} }; |