diff options
author | babenko <babenko@yandex-team.com> | 2023-03-03 09:26:42 +0300 |
---|---|---|
committer | babenko <babenko@yandex-team.com> | 2023-03-03 09:26:42 +0300 |
commit | abfca1b53fa9b0a4bd67a60fc117ab3af735bc78 (patch) | |
tree | a04b397a6ee9136b137f58b4a7ca5dfe9246a435 /library/cpp | |
parent | d12d9bfcba02f191a981246652f15fb5bcb67d32 (diff) | |
download | ydb-abfca1b53fa9b0a4bd67a60fc117ab3af735bc78.tar.gz |
Enable -Wdeprecated-this-capture for all YT projects
Diffstat (limited to 'library/cpp')
25 files changed, 77 insertions, 1 deletions
diff --git a/library/cpp/yt/assert/CMakeLists.darwin.txt b/library/cpp/yt/assert/CMakeLists.darwin.txt index 59250edce0b..c2ad57e3a06 100644 --- a/library/cpp/yt/assert/CMakeLists.darwin.txt +++ b/library/cpp/yt/assert/CMakeLists.darwin.txt @@ -8,6 +8,9 @@ add_library(cpp-yt-assert) +target_compile_options(cpp-yt-assert PRIVATE + -Wdeprecated-this-capture +) target_link_libraries(cpp-yt-assert PUBLIC contrib-libs-cxxsupp yutil diff --git a/library/cpp/yt/assert/CMakeLists.linux-aarch64.txt b/library/cpp/yt/assert/CMakeLists.linux-aarch64.txt index 7db56d87127..0c4f0dc6c08 100644 --- a/library/cpp/yt/assert/CMakeLists.linux-aarch64.txt +++ b/library/cpp/yt/assert/CMakeLists.linux-aarch64.txt @@ -8,6 +8,9 @@ add_library(cpp-yt-assert) +target_compile_options(cpp-yt-assert PRIVATE + -Wdeprecated-this-capture +) target_link_libraries(cpp-yt-assert PUBLIC contrib-libs-linux-headers contrib-libs-cxxsupp diff --git a/library/cpp/yt/assert/CMakeLists.linux.txt b/library/cpp/yt/assert/CMakeLists.linux.txt index 7db56d87127..0c4f0dc6c08 100644 --- a/library/cpp/yt/assert/CMakeLists.linux.txt +++ b/library/cpp/yt/assert/CMakeLists.linux.txt @@ -8,6 +8,9 @@ add_library(cpp-yt-assert) +target_compile_options(cpp-yt-assert PRIVATE + -Wdeprecated-this-capture +) target_link_libraries(cpp-yt-assert PUBLIC contrib-libs-linux-headers contrib-libs-cxxsupp diff --git a/library/cpp/yt/exception/CMakeLists.darwin.txt b/library/cpp/yt/exception/CMakeLists.darwin.txt index 1a13fd08620..f40a29467d0 100644 --- a/library/cpp/yt/exception/CMakeLists.darwin.txt +++ b/library/cpp/yt/exception/CMakeLists.darwin.txt @@ -8,6 +8,9 @@ add_library(cpp-yt-exception) +target_compile_options(cpp-yt-exception PRIVATE + -Wdeprecated-this-capture +) target_link_libraries(cpp-yt-exception PUBLIC contrib-libs-cxxsupp yutil diff --git a/library/cpp/yt/exception/CMakeLists.linux-aarch64.txt b/library/cpp/yt/exception/CMakeLists.linux-aarch64.txt index e17ecd79c88..780e571ddc3 100644 --- a/library/cpp/yt/exception/CMakeLists.linux-aarch64.txt +++ b/library/cpp/yt/exception/CMakeLists.linux-aarch64.txt @@ -8,6 +8,9 @@ add_library(cpp-yt-exception) +target_compile_options(cpp-yt-exception PRIVATE + -Wdeprecated-this-capture +) target_link_libraries(cpp-yt-exception PUBLIC contrib-libs-linux-headers contrib-libs-cxxsupp diff --git a/library/cpp/yt/exception/CMakeLists.linux.txt b/library/cpp/yt/exception/CMakeLists.linux.txt index e17ecd79c88..780e571ddc3 100644 --- a/library/cpp/yt/exception/CMakeLists.linux.txt +++ b/library/cpp/yt/exception/CMakeLists.linux.txt @@ -8,6 +8,9 @@ add_library(cpp-yt-exception) +target_compile_options(cpp-yt-exception PRIVATE + -Wdeprecated-this-capture +) target_link_libraries(cpp-yt-exception PUBLIC contrib-libs-linux-headers contrib-libs-cxxsupp diff --git a/library/cpp/yt/malloc/CMakeLists.darwin.txt b/library/cpp/yt/malloc/CMakeLists.darwin.txt index 87fdf24f906..1d843305d98 100644 --- a/library/cpp/yt/malloc/CMakeLists.darwin.txt +++ b/library/cpp/yt/malloc/CMakeLists.darwin.txt @@ -8,6 +8,9 @@ add_library(cpp-yt-malloc) +target_compile_options(cpp-yt-malloc PRIVATE + -Wdeprecated-this-capture +) target_link_libraries(cpp-yt-malloc PUBLIC contrib-libs-cxxsupp yutil diff --git a/library/cpp/yt/malloc/CMakeLists.linux-aarch64.txt b/library/cpp/yt/malloc/CMakeLists.linux-aarch64.txt index a7bf6c0e5bd..40c26cadfba 100644 --- a/library/cpp/yt/malloc/CMakeLists.linux-aarch64.txt +++ b/library/cpp/yt/malloc/CMakeLists.linux-aarch64.txt @@ -8,6 +8,9 @@ add_library(cpp-yt-malloc) +target_compile_options(cpp-yt-malloc PRIVATE + -Wdeprecated-this-capture +) target_link_libraries(cpp-yt-malloc PUBLIC contrib-libs-linux-headers contrib-libs-cxxsupp diff --git a/library/cpp/yt/malloc/CMakeLists.linux.txt b/library/cpp/yt/malloc/CMakeLists.linux.txt index a7bf6c0e5bd..40c26cadfba 100644 --- a/library/cpp/yt/malloc/CMakeLists.linux.txt +++ b/library/cpp/yt/malloc/CMakeLists.linux.txt @@ -8,6 +8,9 @@ add_library(cpp-yt-malloc) +target_compile_options(cpp-yt-malloc PRIVATE + -Wdeprecated-this-capture +) target_link_libraries(cpp-yt-malloc PUBLIC contrib-libs-linux-headers contrib-libs-cxxsupp diff --git a/library/cpp/yt/memory/CMakeLists.darwin.txt b/library/cpp/yt/memory/CMakeLists.darwin.txt index da62073cb8c..30fdfbef100 100644 --- a/library/cpp/yt/memory/CMakeLists.darwin.txt +++ b/library/cpp/yt/memory/CMakeLists.darwin.txt @@ -8,6 +8,9 @@ add_library(cpp-yt-memory) +target_compile_options(cpp-yt-memory PRIVATE + -Wdeprecated-this-capture +) target_link_libraries(cpp-yt-memory PUBLIC contrib-libs-cxxsupp yutil diff --git a/library/cpp/yt/memory/CMakeLists.linux-aarch64.txt b/library/cpp/yt/memory/CMakeLists.linux-aarch64.txt index d1b4e6926e5..7325ab2c740 100644 --- a/library/cpp/yt/memory/CMakeLists.linux-aarch64.txt +++ b/library/cpp/yt/memory/CMakeLists.linux-aarch64.txt @@ -8,6 +8,9 @@ add_library(cpp-yt-memory) +target_compile_options(cpp-yt-memory PRIVATE + -Wdeprecated-this-capture +) target_link_libraries(cpp-yt-memory PUBLIC contrib-libs-linux-headers contrib-libs-cxxsupp diff --git a/library/cpp/yt/memory/CMakeLists.linux.txt b/library/cpp/yt/memory/CMakeLists.linux.txt index d1b4e6926e5..7325ab2c740 100644 --- a/library/cpp/yt/memory/CMakeLists.linux.txt +++ b/library/cpp/yt/memory/CMakeLists.linux.txt @@ -8,6 +8,9 @@ add_library(cpp-yt-memory) +target_compile_options(cpp-yt-memory PRIVATE + -Wdeprecated-this-capture +) target_link_libraries(cpp-yt-memory PUBLIC contrib-libs-linux-headers contrib-libs-cxxsupp diff --git a/library/cpp/yt/misc/CMakeLists.darwin.txt b/library/cpp/yt/misc/CMakeLists.darwin.txt index d05719a4457..92907b63dc2 100644 --- a/library/cpp/yt/misc/CMakeLists.darwin.txt +++ b/library/cpp/yt/misc/CMakeLists.darwin.txt @@ -8,6 +8,9 @@ add_library(cpp-yt-misc) +target_compile_options(cpp-yt-misc PRIVATE + -Wdeprecated-this-capture +) target_link_libraries(cpp-yt-misc PUBLIC contrib-libs-cxxsupp yutil diff --git a/library/cpp/yt/misc/CMakeLists.linux-aarch64.txt b/library/cpp/yt/misc/CMakeLists.linux-aarch64.txt index 3b4b8df2964..9ed005067b4 100644 --- a/library/cpp/yt/misc/CMakeLists.linux-aarch64.txt +++ b/library/cpp/yt/misc/CMakeLists.linux-aarch64.txt @@ -8,6 +8,9 @@ add_library(cpp-yt-misc) +target_compile_options(cpp-yt-misc PRIVATE + -Wdeprecated-this-capture +) target_link_libraries(cpp-yt-misc PUBLIC contrib-libs-linux-headers contrib-libs-cxxsupp diff --git a/library/cpp/yt/misc/CMakeLists.linux.txt b/library/cpp/yt/misc/CMakeLists.linux.txt index 3b4b8df2964..9ed005067b4 100644 --- a/library/cpp/yt/misc/CMakeLists.linux.txt +++ b/library/cpp/yt/misc/CMakeLists.linux.txt @@ -8,6 +8,9 @@ add_library(cpp-yt-misc) +target_compile_options(cpp-yt-misc PRIVATE + -Wdeprecated-this-capture +) target_link_libraries(cpp-yt-misc PUBLIC contrib-libs-linux-headers contrib-libs-cxxsupp diff --git a/library/cpp/yt/string/CMakeLists.darwin.txt b/library/cpp/yt/string/CMakeLists.darwin.txt index c2e15d6a7ca..77a9e8a268f 100644 --- a/library/cpp/yt/string/CMakeLists.darwin.txt +++ b/library/cpp/yt/string/CMakeLists.darwin.txt @@ -8,6 +8,9 @@ add_library(cpp-yt-string) +target_compile_options(cpp-yt-string PRIVATE + -Wdeprecated-this-capture +) target_link_libraries(cpp-yt-string PUBLIC contrib-libs-cxxsupp yutil diff --git a/library/cpp/yt/string/CMakeLists.linux-aarch64.txt b/library/cpp/yt/string/CMakeLists.linux-aarch64.txt index b5083d38557..cfafefd2b17 100644 --- a/library/cpp/yt/string/CMakeLists.linux-aarch64.txt +++ b/library/cpp/yt/string/CMakeLists.linux-aarch64.txt @@ -8,6 +8,9 @@ add_library(cpp-yt-string) +target_compile_options(cpp-yt-string PRIVATE + -Wdeprecated-this-capture +) target_link_libraries(cpp-yt-string PUBLIC contrib-libs-linux-headers contrib-libs-cxxsupp diff --git a/library/cpp/yt/string/CMakeLists.linux.txt b/library/cpp/yt/string/CMakeLists.linux.txt index b5083d38557..cfafefd2b17 100644 --- a/library/cpp/yt/string/CMakeLists.linux.txt +++ b/library/cpp/yt/string/CMakeLists.linux.txt @@ -8,6 +8,9 @@ add_library(cpp-yt-string) +target_compile_options(cpp-yt-string PRIVATE + -Wdeprecated-this-capture +) target_link_libraries(cpp-yt-string PUBLIC contrib-libs-linux-headers contrib-libs-cxxsupp diff --git a/library/cpp/yt/ya_cpp.make.inc b/library/cpp/yt/ya_cpp.make.inc index 325764e74a6..c9b3846658e 100644 --- a/library/cpp/yt/ya_cpp.make.inc +++ b/library/cpp/yt/ya_cpp.make.inc @@ -1 +1,5 @@ -# Common flags for C++ projects +# This file should be included in all YT projects (including YT ORM installations). + +CXXFLAGS( + -Wdeprecated-this-capture +) diff --git a/library/cpp/yt/yson/CMakeLists.darwin.txt b/library/cpp/yt/yson/CMakeLists.darwin.txt index 29152238626..68ae5dcaaf7 100644 --- a/library/cpp/yt/yson/CMakeLists.darwin.txt +++ b/library/cpp/yt/yson/CMakeLists.darwin.txt @@ -8,6 +8,9 @@ add_library(cpp-yt-yson) +target_compile_options(cpp-yt-yson PRIVATE + -Wdeprecated-this-capture +) target_link_libraries(cpp-yt-yson PUBLIC contrib-libs-cxxsupp yutil diff --git a/library/cpp/yt/yson/CMakeLists.linux-aarch64.txt b/library/cpp/yt/yson/CMakeLists.linux-aarch64.txt index a7c0ce6f5fe..0aa2b791227 100644 --- a/library/cpp/yt/yson/CMakeLists.linux-aarch64.txt +++ b/library/cpp/yt/yson/CMakeLists.linux-aarch64.txt @@ -8,6 +8,9 @@ add_library(cpp-yt-yson) +target_compile_options(cpp-yt-yson PRIVATE + -Wdeprecated-this-capture +) target_link_libraries(cpp-yt-yson PUBLIC contrib-libs-linux-headers contrib-libs-cxxsupp diff --git a/library/cpp/yt/yson/CMakeLists.linux.txt b/library/cpp/yt/yson/CMakeLists.linux.txt index a7c0ce6f5fe..0aa2b791227 100644 --- a/library/cpp/yt/yson/CMakeLists.linux.txt +++ b/library/cpp/yt/yson/CMakeLists.linux.txt @@ -8,6 +8,9 @@ add_library(cpp-yt-yson) +target_compile_options(cpp-yt-yson PRIVATE + -Wdeprecated-this-capture +) target_link_libraries(cpp-yt-yson PUBLIC contrib-libs-linux-headers contrib-libs-cxxsupp diff --git a/library/cpp/yt/yson_string/CMakeLists.darwin.txt b/library/cpp/yt/yson_string/CMakeLists.darwin.txt index 941cc516b04..31253becd72 100644 --- a/library/cpp/yt/yson_string/CMakeLists.darwin.txt +++ b/library/cpp/yt/yson_string/CMakeLists.darwin.txt @@ -8,6 +8,9 @@ add_library(cpp-yt-yson_string) +target_compile_options(cpp-yt-yson_string PRIVATE + -Wdeprecated-this-capture +) target_link_libraries(cpp-yt-yson_string PUBLIC contrib-libs-cxxsupp yutil diff --git a/library/cpp/yt/yson_string/CMakeLists.linux-aarch64.txt b/library/cpp/yt/yson_string/CMakeLists.linux-aarch64.txt index b8dfa1d7a12..4e3045fc6aa 100644 --- a/library/cpp/yt/yson_string/CMakeLists.linux-aarch64.txt +++ b/library/cpp/yt/yson_string/CMakeLists.linux-aarch64.txt @@ -8,6 +8,9 @@ add_library(cpp-yt-yson_string) +target_compile_options(cpp-yt-yson_string PRIVATE + -Wdeprecated-this-capture +) target_link_libraries(cpp-yt-yson_string PUBLIC contrib-libs-linux-headers contrib-libs-cxxsupp diff --git a/library/cpp/yt/yson_string/CMakeLists.linux.txt b/library/cpp/yt/yson_string/CMakeLists.linux.txt index b8dfa1d7a12..4e3045fc6aa 100644 --- a/library/cpp/yt/yson_string/CMakeLists.linux.txt +++ b/library/cpp/yt/yson_string/CMakeLists.linux.txt @@ -8,6 +8,9 @@ add_library(cpp-yt-yson_string) +target_compile_options(cpp-yt-yson_string PRIVATE + -Wdeprecated-this-capture +) target_link_libraries(cpp-yt-yson_string PUBLIC contrib-libs-linux-headers contrib-libs-cxxsupp |