diff options
author | Josh Blum <josh@joshknows.com> | 2012-02-09 19:02:43 -0800 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2012-02-09 19:02:43 -0800 |
commit | 8442ea5e2cfec89db6e58736a969da2842734631 (patch) | |
tree | 624301099581ea0794d88a61007bdf3418182d1d /host/lib/usrp/common | |
parent | 115100034071b3b58de1fce7c795995f6ee615a1 (diff) | |
download | uhd-8442ea5e2cfec89db6e58736a969da2842734631.tar.gz uhd-8442ea5e2cfec89db6e58736a969da2842734631.tar.bz2 uhd-8442ea5e2cfec89db6e58736a969da2842734631.zip |
b100/usrp1: various tweaks for compiler warns and valgrind
Diffstat (limited to 'host/lib/usrp/common')
-rw-r--r-- | host/lib/usrp/common/fx2_ctrl.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/host/lib/usrp/common/fx2_ctrl.cpp b/host/lib/usrp/common/fx2_ctrl.cpp index 3c6df7079..baf8f5e68 100644 --- a/host/lib/usrp/common/fx2_ctrl.cpp +++ b/host/lib/usrp/common/fx2_ctrl.cpp @@ -419,7 +419,7 @@ public: { UHD_ASSERT_THROW(bytes.size() < max_i2c_data_bytes); - unsigned char buff[max_i2c_data_bytes]; + unsigned char buff[max_i2c_data_bytes] = {}; std::copy(bytes.begin(), bytes.end(), buff); int ret = this->usrp_i2c_write(addr & 0xff, @@ -434,7 +434,7 @@ public: { UHD_ASSERT_THROW(num_bytes < max_i2c_data_bytes); - unsigned char buff[max_i2c_data_bytes]; + unsigned char buff[max_i2c_data_bytes] = {}; int ret = this->usrp_i2c_read(addr & 0xff, buff, num_bytes); |