diff options
| author | nastprol <[email protected]> | 2024-10-17 11:56:20 +0300 | 
|---|---|---|
| committer | nastprol <[email protected]> | 2024-10-17 12:08:54 +0300 | 
| commit | cdf829ba2950dbc46273b904ead57acdf6c702c2 (patch) | |
| tree | 9817725485955b038b8bb37eded19f115add5b14 /library/cpp | |
| parent | 3682ce7f2626a0e22e9cf839b808faed3c5d70d6 (diff) | |
Fix disabling ref counted tracking
commit_hash:8552424a0dfce80a71c406632beba95646bf5b3e
Diffstat (limited to 'library/cpp')
| -rw-r--r-- | library/cpp/yt/memory/blob.cpp | 4 | ||||
| -rw-r--r-- | library/cpp/yt/memory/ya.make | 4 | 
2 files changed, 8 insertions, 0 deletions
| diff --git a/library/cpp/yt/memory/blob.cpp b/library/cpp/yt/memory/blob.cpp index 260cfb698b7..b4de038948c 100644 --- a/library/cpp/yt/memory/blob.cpp +++ b/library/cpp/yt/memory/blob.cpp @@ -197,6 +197,8 @@ void TBlob::SetTagCookie(TRefCountedTypeCookie tagCookie)  {  #ifdef YT_ENABLE_REF_COUNTED_TRACKING      TagCookie_ = tagCookie; +#else +    Y_UNUSED(tagCookie);  #endif  } @@ -204,6 +206,8 @@ void TBlob::SetTagCookie(const TBlob& other)  {  #ifdef YT_ENABLE_REF_COUNTED_TRACKING      TagCookie_ = other.TagCookie_; +#else +    Y_UNUSED(other);  #endif  } diff --git a/library/cpp/yt/memory/ya.make b/library/cpp/yt/memory/ya.make index c2d78b0d079..bd817454a93 100644 --- a/library/cpp/yt/memory/ya.make +++ b/library/cpp/yt/memory/ya.make @@ -2,6 +2,10 @@ LIBRARY()  INCLUDE(${ARCADIA_ROOT}/library/cpp/yt/ya_cpp.make.inc) +IF (YT_DISABLE_REF_COUNTED_TRACKING) +    CXXFLAGS(-DYT_DISABLE_REF_COUNTED_TRACKING) +ENDIF() +  SRCS(      allocation_tags_hooks.cpp      blob.cpp | 
