aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp
diff options
context:
space:
mode:
authornechda <nechda@yandex-team.com>2025-05-06 18:42:39 +0300
committernechda <nechda@yandex-team.com>2025-05-06 19:01:14 +0300
commit2ee421373f021f9e2052947917506a69c0b757ea (patch)
tree839120e4f67c7995bd5d86094176496bf7fc1fef /library/cpp
parent1f6c6c27a8e7dbb160b50ebaaaea4d3aeb59612c (diff)
downloadydb-2ee421373f021f9e2052947917506a69c0b757ea.tar.gz
[library] Fix -Wdeprecated-this-capture warning
Fix for library commit_hash:4ffd5fad7dcb0fae1cd0597997304346d7ac8865
Diffstat (limited to 'library/cpp')
-rw-r--r--library/cpp/lwtrace/log_shuttle.h2
-rw-r--r--library/cpp/yson_pull/detail/macros.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/library/cpp/lwtrace/log_shuttle.h b/library/cpp/lwtrace/log_shuttle.h
index 8549acd833b..95fc4649e0b 100644
--- a/library/cpp/lwtrace/log_shuttle.h
+++ b/library/cpp/lwtrace/log_shuttle.h
@@ -332,7 +332,7 @@ namespace NLWTrace {
bool TEditLogShuttleActionExecutor<TDepot>::DoExecute(TOrbit& orbit, const TParams& params) {
Y_UNUSED(params);
bool ignore = Action.GetIgnore();
- orbit.ForEachShuttle(this->GetTraceIdx(), [=](IShuttle* shuttle) {
+ orbit.ForEachShuttle(this->GetTraceIdx(), [=, this](IShuttle* shuttle) {
this->Cast(shuttle)->SetIgnore(ignore);
return true;
});
diff --git a/library/cpp/yson_pull/detail/macros.h b/library/cpp/yson_pull/detail/macros.h
index 7243f9cfe13..35f2ef1930e 100644
--- a/library/cpp/yson_pull/detail/macros.h
+++ b/library/cpp/yson_pull/detail/macros.h
@@ -16,7 +16,7 @@
();
#else
// Clang does not support gnu-style attributes on lambda functions yet
-#define COLD_BLOCK_BYVALUE [=]() {
+#define COLD_BLOCK_BYVALUE [=, this]() {
#define COLD_BLOCK_BYREF [&]() {
#define COLD_BLOCK_END \
} \