From 49e5ef81530684998bc4bc0934590cdaa81190ab Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Fri, 8 Jan 2021 12:25:25 +0100 Subject: 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. --- host/lib/include/uhdlib/usrp/common/adf4001_ctrl.hpp | 1 + 1 file changed, 1 insertion(+) (limited to 'host/lib/include/uhdlib/usrp/common/adf4001_ctrl.hpp') diff --git a/host/lib/include/uhdlib/usrp/common/adf4001_ctrl.hpp b/host/lib/include/uhdlib/usrp/common/adf4001_ctrl.hpp index a98238a25..49a69bdbf 100644 --- a/host/lib/include/uhdlib/usrp/common/adf4001_ctrl.hpp +++ b/host/lib/include/uhdlib/usrp/common/adf4001_ctrl.hpp @@ -105,6 +105,7 @@ class adf4001_ctrl { public: adf4001_ctrl(uhd::spi_iface::sptr _spi, int slaveno); + virtual ~adf4001_ctrl() = default; virtual void set_lock_to_ext_ref(bool external); private: -- cgit v1.2.3