Skip to content

Commit cdf829b

Browse files
author
nastprol
committed
Fix disabling ref counted tracking
commit_hash:8552424a0dfce80a71c406632beba95646bf5b3e
1 parent 3682ce7 commit cdf829b

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

library/cpp/yt/memory/blob.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,13 +197,17 @@ void TBlob::SetTagCookie(TRefCountedTypeCookie tagCookie)
197197
{
198198
#ifdef YT_ENABLE_REF_COUNTED_TRACKING
199199
TagCookie_ = tagCookie;
200+
#else
201+
Y_UNUSED(tagCookie);
200202
#endif
201203
}
202204

203205
void TBlob::SetTagCookie(const TBlob& other)
204206
{
205207
#ifdef YT_ENABLE_REF_COUNTED_TRACKING
206208
TagCookie_ = other.TagCookie_;
209+
#else
210+
Y_UNUSED(other);
207211
#endif
208212
}
209213

library/cpp/yt/memory/ya.make

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ LIBRARY()
22

33
INCLUDE(${ARCADIA_ROOT}/library/cpp/yt/ya_cpp.make.inc)
44

5+
IF (YT_DISABLE_REF_COUNTED_TRACKING)
6+
CXXFLAGS(-DYT_DISABLE_REF_COUNTED_TRACKING)
7+
ENDIF()
8+
59
SRCS(
610
allocation_tags_hooks.cpp
711
blob.cpp

0 commit comments

Comments
 (0)