From 866df135adb91299d1009c1b1d2053dd3112acda Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Tue, 9 Mar 2021 11:09:01 +0100 Subject: lib: rpc: Add virtual dtor to RPC iface base class This avoids more clang compiler warnings. --- host/lib/include/uhdlib/usrp/common/rpc.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'host/lib/include/uhdlib/usrp') diff --git a/host/lib/include/uhdlib/usrp/common/rpc.py b/host/lib/include/uhdlib/usrp/common/rpc.py index 7840d10aa..04a43ebce 100644 --- a/host/lib/include/uhdlib/usrp/common/rpc.py +++ b/host/lib/include/uhdlib/usrp/common/rpc.py @@ -96,6 +96,8 @@ namespace uhd { namespace usrp { public: using sptr = std::shared_ptr<${iface.basename}_iface>; + virtual ~${iface.basename}_iface() = default; + %for function in iface.functions: virtual ${function.return_type} ${function.name}(${",".join(function.args)}) = 0; %endfor -- cgit v1.2.3