diff options
author | Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nedprod.com> | 2022-05-02 18:34:44 +0300 |
---|---|---|
committer | Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nedprod.com> | 2022-05-02 18:34:44 +0300 |
commit | 0f3962b8ce22d4f5a80a5caf1c53203fd3f0a699 (patch) | |
tree | bf85cf151a5af603e0ab721b47e3d3f5c166ddd1 | |
parent | b14975ebfefc3398e93e860dc9b423ec27bbe50e (diff) |
openssl.ipp: Capture this in value capturing lambdas to suppress GCC warning.
-rw-r--r-- | include/llfio/v2.0/detail/impl/tls_socket_sources/openssl.ipp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llfio/v2.0/detail/impl/tls_socket_sources/openssl.ipp b/include/llfio/v2.0/detail/impl/tls_socket_sources/openssl.ipp index c6b3ffd9..09c830c7 100644 --- a/include/llfio/v2.0/detail/impl/tls_socket_sources/openssl.ipp +++ b/include/llfio/v2.0/detail/impl/tls_socket_sources/openssl.ipp @@ -1275,7 +1275,7 @@ public: int _bread(BIO *bio, char *buffer, size_t bytes, size_t *read) { LLFIO_LOG_FUNCTION_CALL(this); - auto ret = [=]() mutable + auto ret = [=, this]() mutable { assert(_lock_holder.owns_lock()); *read = 0; @@ -1374,7 +1374,7 @@ public: int _bwrite(BIO *bio, const char *buffer, size_t bytes, size_t *written) { LLFIO_LOG_FUNCTION_CALL(this); - auto ret = [=]() mutable + auto ret = [=, this]() mutable { assert(_lock_holder.owns_lock()); *written = 0; |