diff options
author | Martin Braun <martin.braun@ettus.com> | 2021-01-09 00:44:11 +0100 |
---|---|---|
committer | Aaron Rossetto <aaron.rossetto@ni.com> | 2021-03-04 08:20:21 -0600 |
commit | df6c2bebae7af7968165f6ad16e56d3f9fccef52 (patch) | |
tree | 289635404d80cb30770d87c13721ab926fa18786 /host | |
parent | ecefbdd9ab245c1ef3ea8a8521ea79952f06dbe8 (diff) | |
download | uhd-df6c2bebae7af7968165f6ad16e56d3f9fccef52.tar.gz uhd-df6c2bebae7af7968165f6ad16e56d3f9fccef52.tar.bz2 uhd-df6c2bebae7af7968165f6ad16e56d3f9fccef52.zip |
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.
Diffstat (limited to 'host')
-rw-r--r-- | host/lib/usrp/dboard/twinrx/twinrx_gain_tables.hpp | 3 |
1 files changed, 3 insertions, 0 deletions
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) { |