aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/rfnoc/mgmt_portal.cpp
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2020-04-14 22:32:18 -0700
committerAaron Rossetto <aaron.rossetto@ni.com>2020-04-17 14:36:44 -0500
commit6dc3968765b72024afde82dc9e44cc5211c5451e (patch)
tree776f2abf41838c4eb220815c18efeed11ef0d8ef /host/lib/rfnoc/mgmt_portal.cpp
parent18e41b32ffa9046287d7cb1d438ad1343a50fd71 (diff)
downloaduhd-6dc3968765b72024afde82dc9e44cc5211c5451e.tar.gz
uhd-6dc3968765b72024afde82dc9e44cc5211c5451e.tar.bz2
uhd-6dc3968765b72024afde82dc9e44cc5211c5451e.zip
lib: rfnoc: Fix "unused" warnings for non-trace log levels
When the compile log level is higher than TRACE, the UHD_LOG_TRACE() macros get removed, which can lead to unused variables. This modifies UHD to avoid those warnings, with no functional changes.
Diffstat (limited to 'host/lib/rfnoc/mgmt_portal.cpp')
-rw-r--r--host/lib/rfnoc/mgmt_portal.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/host/lib/rfnoc/mgmt_portal.cpp b/host/lib/rfnoc/mgmt_portal.cpp
index 1c6e2c608..971c9837a 100644
--- a/host/lib/rfnoc/mgmt_portal.cpp
+++ b/host/lib/rfnoc/mgmt_portal.cpp
@@ -249,7 +249,6 @@ public:
throw uhd::lookup_error(
"initialize_endpoint(): Cannot reach node with specified address.");
}
- const node_addr_t& node_addr = _node_addr_map.at(lookup_node);
// Add/update the entry in the stream endpoint ID map
_epid_addr_map[epid] = addr;
UHD_LOG_DEBUG("RFNOC::MGMT",
@@ -258,7 +257,7 @@ public:
UHD_LOG_TRACE("RFNOC::MGMT",
(boost::format(
"Stream endpoint with EPID=%d can be reached by taking the path: %s")
- % epid % to_string(node_addr)));
+ % epid % to_string(_node_addr_map.at(lookup_node))));
}
virtual bool is_endpoint_registered(const sep_id_t& epid) const