From df6c2bebae7af7968165f6ad16e56d3f9fccef52 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Sat, 9 Jan 2021 00:44:11 +0100 Subject: twinrx: Fix missing default copy ctor twinrx_gain_config_t defined an assignment operator, but not a default copy ctor. This is not allowed in modern C++, although compilers let it slide and provide their own defaults. Clang, however, throws a warning so let's fix it. --- host/lib/usrp/dboard/twinrx/twinrx_gain_tables.hpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'host') diff --git a/host/lib/usrp/dboard/twinrx/twinrx_gain_tables.hpp b/host/lib/usrp/dboard/twinrx/twinrx_gain_tables.hpp index 49a7260bd..1ef9516ad 100644 --- a/host/lib/usrp/dboard/twinrx/twinrx_gain_tables.hpp +++ b/host/lib/usrp/dboard/twinrx/twinrx_gain_tables.hpp @@ -38,6 +38,9 @@ public: { } + twinrx_gain_config_t(const twinrx_gain_config_t& gc) = default; + ~twinrx_gain_config_t() = default; + twinrx_gain_config_t& operator=(const twinrx_gain_config_t& src) { if (this != &src) { -- cgit v1.2.3