diff options
author | Martin Braun <martin.braun@ettus.com> | 2020-04-14 22:35:12 -0700 |
---|---|---|
committer | Aaron Rossetto <aaron.rossetto@ni.com> | 2020-04-17 14:36:44 -0500 |
commit | 0f105cca21d5337ec7d6a711b25fe0507612de76 (patch) | |
tree | 3faf4d6767587bbe2c6209c3d20b7408e777d962 /host/lib | |
parent | 6dc3968765b72024afde82dc9e44cc5211c5451e (diff) | |
download | uhd-0f105cca21d5337ec7d6a711b25fe0507612de76.tar.gz uhd-0f105cca21d5337ec7d6a711b25fe0507612de76.tar.bz2 uhd-0f105cca21d5337ec7d6a711b25fe0507612de76.zip |
ad9361: Remove compiler warning
Adds UHD_UNUSED() to tag a variable that is only used in
a UHD_LOG_TRACE() macro.
Diffstat (limited to 'host/lib')
-rw-r--r-- | host/lib/usrp/common/ad9361_driver/ad9361_device.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/host/lib/usrp/common/ad9361_driver/ad9361_device.cpp b/host/lib/usrp/common/ad9361_driver/ad9361_device.cpp index 784658cb0..075a0c8b6 100644 --- a/host/lib/usrp/common/ad9361_driver/ad9361_device.cpp +++ b/host/lib/usrp/common/ad9361_driver/ad9361_device.cpp @@ -1880,7 +1880,7 @@ double ad9361_device_t::set_clock_rate(const double req_rate) /* Call into the clock configuration / settings function. This is where * all the hard work gets done. */ - double rate = _setup_rates(req_rate); + double UHD_UNUSED(rate) = _setup_rates(req_rate); UHD_LOG_TRACE("AD936X", "[ad9361_device_t::set_clock_rate] rate=" << rate); |