aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorthegeorg <thegeorg@yandex-team.com>2025-01-23 17:45:02 +0300
committerthegeorg <thegeorg@yandex-team.com>2025-01-23 18:32:13 +0300
commita6e6da86b7647005f55c75fb2d670e1133fae024 (patch)
tree7fc38e0c5f11823484563be3d71ee1a0dd0eea8b
parent8b11fd720733f22796dbcff181d79102d7ebd049 (diff)
downloadydb-a6e6da86b7647005f55c75fb2d670e1133fae024.tar.gz
Fix -Wnon-virtual-dtor in util and gtest wrapper
commit_hash:d8917bc04e6ab10b341000f8bb98d456223f0307
-rw-r--r--library/cpp/testing/unittest/gtest.h2
-rw-r--r--util/ysaveload_ut.cpp1
2 files changed, 3 insertions, 0 deletions
diff --git a/library/cpp/testing/unittest/gtest.h b/library/cpp/testing/unittest/gtest.h
index a59ea48fdd..6bda57334d 100644
--- a/library/cpp/testing/unittest/gtest.h
+++ b/library/cpp/testing/unittest/gtest.h
@@ -33,6 +33,8 @@ namespace NTesting {
inline TTest* _This() noexcept {
return this;
}
+
+ virtual ~TTest() = default;
};
}
diff --git a/util/ysaveload_ut.cpp b/util/ysaveload_ut.cpp
index 56d75a6e04..fe6b0eec8f 100644
--- a/util/ysaveload_ut.cpp
+++ b/util/ysaveload_ut.cpp
@@ -672,6 +672,7 @@ private:
struct IInterface {
virtual void Save(IOutputStream* out) const = 0;
virtual void Load(IInputStream* in) = 0;
+ virtual ~IInterface() = default;
};
struct TBaseVirtual: IInterface {
TString Str1;