aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/include/uhdlib/usrp/common/pwr_cal_mgr.hpp
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2021-01-08 12:25:25 +0100
committerAaron Rossetto <aaron.rossetto@ni.com>2021-03-04 08:23:50 -0600
commit49e5ef81530684998bc4bc0934590cdaa81190ab (patch)
treea985c6e7864cb60a33e783910bcf2d072688d114 /host/lib/include/uhdlib/usrp/common/pwr_cal_mgr.hpp
parentdf6c2bebae7af7968165f6ad16e56d3f9fccef52 (diff)
downloaduhd-49e5ef81530684998bc4bc0934590cdaa81190ab.tar.gz
uhd-49e5ef81530684998bc4bc0934590cdaa81190ab.tar.bz2
uhd-49e5ef81530684998bc4bc0934590cdaa81190ab.zip
lib: Add some virtual dtors
Classes where we call delete (implicitly or explicitly) with a virtual inheritance structure need to declare dtors as virtual. This reduces compiler warnings with clang. There are no known bugs (yet) due to this.
Diffstat (limited to 'host/lib/include/uhdlib/usrp/common/pwr_cal_mgr.hpp')
-rw-r--r--host/lib/include/uhdlib/usrp/common/pwr_cal_mgr.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/host/lib/include/uhdlib/usrp/common/pwr_cal_mgr.hpp b/host/lib/include/uhdlib/usrp/common/pwr_cal_mgr.hpp
index 4d063825b..c24e7718c 100644
--- a/host/lib/include/uhdlib/usrp/common/pwr_cal_mgr.hpp
+++ b/host/lib/include/uhdlib/usrp/common/pwr_cal_mgr.hpp
@@ -80,6 +80,8 @@ public:
get_str_type&& get_key,
uhd::gain_group::sptr gain_group);
+ virtual ~pwr_cal_mgr() = default;
+
//! Update the gain group (see make());
//
// Not thread-safe: Don't call at the same time as set_power()