diff options
author | Andrej Rode <andrej.rode@ettus.com> | 2017-04-25 12:33:07 -0700 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2017-04-25 17:15:13 -0700 |
commit | e6c8cee6e9e6dbe257bc6a77899306e611d44d71 (patch) | |
tree | 8b444ada50d95b84f1b3fa51df840165861cf3c4 | |
parent | a96fdcfe275451c2a217c6ccf34cdd73c5719905 (diff) | |
download | uhd-e6c8cee6e9e6dbe257bc6a77899306e611d44d71.tar.gz uhd-e6c8cee6e9e6dbe257bc6a77899306e611d44d71.tar.bz2 uhd-e6c8cee6e9e6dbe257bc6a77899306e611d44d71.zip |
coverity: fix various minor issues
-rw-r--r-- | host/lib/rfnoc/nocscript/expression.hpp | 2 | ||||
-rw-r--r-- | host/utils/usrp_n2xx_simple_net_burner.cpp | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/host/lib/rfnoc/nocscript/expression.hpp b/host/lib/rfnoc/nocscript/expression.hpp index 83fc5bcbc..1acd02009 100644 --- a/host/lib/rfnoc/nocscript/expression.hpp +++ b/host/lib/rfnoc/nocscript/expression.hpp @@ -215,6 +215,7 @@ class expression_container : public expression //! Create an empty container expression_container() : _combiner(COMBINE_NOTSET) {}; + virtual ~expression_container(){}; /*! Type-deduction rules for containers are: * - If the combination type is COMBINE_ALL or COMBINE_AND, @@ -299,6 +300,7 @@ class expression_function : public expression_container const std::string &name, const boost::shared_ptr<function_table> func_table ); + ~expression_function(){}; //! Add an argument expression virtual void add(expression::sptr new_expr); diff --git a/host/utils/usrp_n2xx_simple_net_burner.cpp b/host/utils/usrp_n2xx_simple_net_burner.cpp index f85ea9def..20070503c 100644 --- a/host/utils/usrp_n2xx_simple_net_burner.cpp +++ b/host/utils/usrp_n2xx_simple_net_burner.cpp @@ -151,7 +151,7 @@ void sig_int_handler(int){ void list_usrps(){ udp_simple::sptr udp_bc_transport; const usrp2_fw_update_data_t *update_data_in = reinterpret_cast<const usrp2_fw_update_data_t *>(usrp2_update_data_in_mem); - uint32_t hw_rev; + uint32_t hw_rev = 0; usrp2_fw_update_data_t usrp2_ack_pkt = usrp2_fw_update_data_t(); usrp2_ack_pkt.proto_ver = htonx<uint32_t>(USRP2_FW_PROTO_VERSION); |