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/transport/link_base.hpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'host/lib/include/uhdlib/transport/link_base.hpp') diff --git a/host/lib/include/uhdlib/transport/link_base.hpp b/host/lib/include/uhdlib/transport/link_base.hpp index e2b0425bd..76b5c1ee3 100644 --- a/host/lib/include/uhdlib/transport/link_base.hpp +++ b/host/lib/include/uhdlib/transport/link_base.hpp @@ -74,6 +74,8 @@ public: { } + virtual ~send_link_base() = default; + size_t get_num_send_frames() const override { return _num_send_frames; @@ -164,7 +166,13 @@ public: { } +<<<<<<< HEAD size_t get_num_recv_frames() const override +======= + virtual ~recv_link_base() = default; + + virtual size_t get_num_recv_frames() const +>>>>>>> lib: Add some virtual dtors { return _num_recv_frames; } -- cgit v1.2.3