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/io_service_mgr.hpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'host/lib/include/uhdlib/usrp/common/io_service_mgr.hpp') diff --git a/host/lib/include/uhdlib/usrp/common/io_service_mgr.hpp b/host/lib/include/uhdlib/usrp/common/io_service_mgr.hpp index 6b2662703..613db9722 100644 --- a/host/lib/include/uhdlib/usrp/common/io_service_mgr.hpp +++ b/host/lib/include/uhdlib/usrp/common/io_service_mgr.hpp @@ -59,6 +59,8 @@ class io_service_mgr public: using sptr = std::shared_ptr; + virtual ~io_service_mgr() = default; + /*! Connects a pair of links to an I/O service * * Call this method to connect a pair of links to an I/O service. For muxed -- cgit v1.2.3