From 5773833af8d8644bb59e664fe068c93b825974e3 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 12 Jun 2023 05:51:26 +0200 Subject: Hack around GCC 13 -Wdangling-reference false positives See GCC bugs 107532, 110213. --- libbuild2/algorithm.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libbuild2/algorithm.cxx') diff --git a/libbuild2/algorithm.cxx b/libbuild2/algorithm.cxx index 3c0da3b..4db3d72 100644 --- a/libbuild2/algorithm.cxx +++ b/libbuild2/algorithm.cxx @@ -122,7 +122,7 @@ namespace build2 } const target& - search (const target& t, name n, const scope& s, const target_type* tt) + search (const target& t, name&& n, const scope& s, const target_type* tt) { assert (t.ctx.phase == run_phase::match); -- cgit v1.1