We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c61d222 commit 156c78eCopy full SHA for 156c78e
util/generic/ptr.h
@@ -405,13 +405,11 @@ class TRefCounted {
405
inline void Ref(intptr_t d) noexcept {
406
auto resultCount = Counter_.Add(d);
407
Y_ASSERT(resultCount >= d);
408
- (void)resultCount;
409
}
410
411
inline void Ref() noexcept {
412
auto resultCount = Counter_.Inc();
413
Y_ASSERT(resultCount != 0);
414
415
416
417
inline void UnRef(intptr_t d) noexcept {
@@ -433,7 +431,6 @@ class TRefCounted {
433
431
inline void DecRef() noexcept {
434
432
auto resultCount = Counter_.Dec();
435
Y_ASSERT(resultCount >= 0);
436
437
438
439
TRefCounted(const TRefCounted&)
0 commit comments