From 6dc3968765b72024afde82dc9e44cc5211c5451e Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Tue, 14 Apr 2020 22:32:18 -0700 Subject: 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. --- host/lib/rfnoc/mgmt_portal.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'host/lib/rfnoc/mgmt_portal.cpp') 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 -- cgit v1.2.3