aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/algorithm.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2023-06-12 05:51:26 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2023-06-12 05:51:26 +0200
commit5773833af8d8644bb59e664fe068c93b825974e3 (patch)
tree727b5ed1d39b1ef5fb021395dcc3330dedb7bd0d /libbuild2/algorithm.cxx
parentc027dfcdfccd1e5f581649ebf176b091081fa21d (diff)
Hack around GCC 13 -Wdangling-reference false positives
See GCC bugs 107532, 110213.
Diffstat (limited to 'libbuild2/algorithm.cxx')
-rw-r--r--libbuild2/algorithm.cxx2
1 files changed, 1 insertions, 1 deletions
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);