From 0f105cca21d5337ec7d6a711b25fe0507612de76 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Tue, 14 Apr 2020 22:35:12 -0700 Subject: ad9361: Remove compiler warning Adds UHD_UNUSED() to tag a variable that is only used in a UHD_LOG_TRACE() macro. --- host/lib/usrp/common/ad9361_driver/ad9361_device.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'host/lib/usrp') 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); -- cgit v1.2.3