From c027dfcdfccd1e5f581649ebf176b091081fa21d Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 9 Jun 2023 12:28:47 +0200 Subject: Add explicit move as recommended by Clang warning --- libbuild2/file.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libbuild2/file.cxx b/libbuild2/file.cxx index 64a92a4..1b00662 100644 --- a/libbuild2/file.cxx +++ b/libbuild2/file.cxx @@ -3219,7 +3219,7 @@ namespace build2 // Split the path into the target. // ns = {name (f.directory (), move (n.type), f.leaf ().string ())}; - return ns; + return move (ns); } if (opt) -- cgit v1.1