aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/dboard/magnesium/magnesium_radio_ctrl_impl.cpp
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2018-01-16 18:51:03 -0800
committerMartin Braun <martin.braun@ettus.com>2018-01-16 18:51:03 -0800
commit4c47498e2e5d0417a39313c74a7eb56d1b5b625b (patch)
treee0883e0af07765c9ced2e459eb7e48dcce830eb9 /host/lib/usrp/dboard/magnesium/magnesium_radio_ctrl_impl.cpp
parentccb09ba68bc11f110c0ed73cf211c1b168da820d (diff)
downloaduhd-4c47498e2e5d0417a39313c74a7eb56d1b5b625b.tar.gz
uhd-4c47498e2e5d0417a39313c74a7eb56d1b5b625b.tar.bz2
uhd-4c47498e2e5d0417a39313c74a7eb56d1b5b625b.zip
mg: Fix various compiler warnings
- Made const constexpr where sensible - Moved non-global constants to their local scope - Changed const char * to const char[] where they should
Diffstat (limited to 'host/lib/usrp/dboard/magnesium/magnesium_radio_ctrl_impl.cpp')
-rw-r--r--host/lib/usrp/dboard/magnesium/magnesium_radio_ctrl_impl.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/host/lib/usrp/dboard/magnesium/magnesium_radio_ctrl_impl.cpp b/host/lib/usrp/dboard/magnesium/magnesium_radio_ctrl_impl.cpp
index 2d61ef1ff..51010ac1f 100644
--- a/host/lib/usrp/dboard/magnesium/magnesium_radio_ctrl_impl.cpp
+++ b/host/lib/usrp/dboard/magnesium/magnesium_radio_ctrl_impl.cpp
@@ -449,7 +449,7 @@ double magnesium_radio_ctrl_impl::_set_tx_gain(
double magnesium_radio_ctrl_impl::_get_tx_gain(
const std::string &name,
- const size_t chan
+ const size_t /*chan*/
) {
std::lock_guard<std::mutex> l(_set_lock);
if (name == MAGNESIUM_GAIN1){
@@ -514,7 +514,7 @@ double magnesium_radio_ctrl_impl::_set_rx_gain(
double magnesium_radio_ctrl_impl::_get_rx_gain(
const std::string &name,
- const size_t chan
+ const size_t /*chan*/
) {
std::lock_guard<std::mutex> l(_set_lock);