From 328572908b6ce8777a780e9fa8106954f749a3a5 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Fri, 8 Jan 2021 12:26:09 +0100 Subject: lib: Remove move-on-return for chdr_packet_writer This is a pessimizing move, and clang warns about it. --- host/lib/include/uhdlib/rfnoc/chdr_packet_writer.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'host/lib/include') 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 -- cgit v1.2.3