aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/include
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2021-01-08 12:26:09 +0100
committerAaron Rossetto <aaron.rossetto@ni.com>2021-03-11 09:33:57 -0600
commit328572908b6ce8777a780e9fa8106954f749a3a5 (patch)
treebdf26f65aedbdd25c86d1bf6d3cfc65dfb5bea52 /host/lib/include
parent2000bbf17e166e89a32f819d0a31c940e1303d1f (diff)
downloaduhd-328572908b6ce8777a780e9fa8106954f749a3a5.tar.gz
uhd-328572908b6ce8777a780e9fa8106954f749a3a5.tar.bz2
uhd-328572908b6ce8777a780e9fa8106954f749a3a5.zip
lib: Remove move-on-return for chdr_packet_writer
This is a pessimizing move, and clang warns about it.
Diffstat (limited to 'host/lib/include')
-rw-r--r--host/lib/include/uhdlib/rfnoc/chdr_packet_writer.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/host/lib/include/uhdlib/rfnoc/chdr_packet_writer.hpp b/host/lib/include/uhdlib/rfnoc/chdr_packet_writer.hpp
index b8d0c9ef4..bf4a88755 100644
--- a/host/lib/include/uhdlib/rfnoc/chdr_packet_writer.hpp
+++ b/host/lib/include/uhdlib/rfnoc/chdr_packet_writer.hpp
@@ -217,7 +217,7 @@ public:
//! Returns a class that represents the contents of the CHDR header
inline chdr_header get_chdr_header() const
{
- return std::move(_chdr_pkt->get_chdr_header());
+ return _chdr_pkt->get_chdr_header();
}
//! Returns a class that represents the contents of the CHDR payload