Skip to content

Commit

Permalink
semaphore: make_expiry_handler: explicitly use this lambda capture
Browse files Browse the repository at this point in the history
Fixes clang 11.0.0 warning:
    ../../include/seastar/core/semaphore.hh:121:17: error: lambda capture 'this' is not used [-Werror,-Wunused-lambda-capture]

Signed-off-by: Benny Halevy <[email protected]>
Message-Id: <[email protected]>
  • Loading branch information
bhalevy authored and avikivity committed Nov 11, 2020
1 parent b7a2e18 commit 043ecec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/seastar/core/semaphore.hh
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ private:
expiry_handler make_expiry_handler() noexcept {
return [this] (entry& e) noexcept {
try {
e.pr.set_exception(exception_factory::timeout());
e.pr.set_exception(this->timeout());
} catch (...) {
e.pr.set_exception(semaphore_timed_out());
}
Expand Down

0 comments on commit 043ecec

Please sign in to comment.