diff options
author | Martin Braun <martin.braun@ettus.com> | 2021-03-09 11:09:01 +0100 |
---|---|---|
committer | Aaron Rossetto <aaron.rossetto@ni.com> | 2021-03-17 15:49:26 -0500 |
commit | 866df135adb91299d1009c1b1d2053dd3112acda (patch) | |
tree | 4e68ac8e55edbe922ab81245de8de1bcfaee006a /host/lib | |
parent | b36fa03407f43dfc8e93a719186264b8d3e6db52 (diff) | |
download | uhd-866df135adb91299d1009c1b1d2053dd3112acda.tar.gz uhd-866df135adb91299d1009c1b1d2053dd3112acda.tar.bz2 uhd-866df135adb91299d1009c1b1d2053dd3112acda.zip |
lib: rpc: Add virtual dtor to RPC iface base class
This avoids more clang compiler warnings.
Diffstat (limited to 'host/lib')
-rw-r--r-- | host/lib/include/uhdlib/usrp/common/rpc.py | 2 |
1 files changed, 2 insertions, 0 deletions
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 |