aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/algorithm.hxx
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.hxx
parentc027dfcdfccd1e5f581649ebf176b091081fa21d (diff)
Hack around GCC 13 -Wdangling-reference false positives
See GCC bugs 107532, 110213.
Diffstat (limited to 'libbuild2/algorithm.hxx')
-rw-r--r--libbuild2/algorithm.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/libbuild2/algorithm.hxx b/libbuild2/algorithm.hxx
index 216ec4b..8bdf737 100644
--- a/libbuild2/algorithm.hxx
+++ b/libbuild2/algorithm.hxx
@@ -164,7 +164,7 @@ namespace build2
// argument.
//
LIBBUILD2_SYMEXPORT const target&
- search (const target&, name, const scope&, const target_type* = nullptr);
+ search (const target&, name&&, const scope&, const target_type* = nullptr);
// Note: returns NULL for unknown target types. Note that unlike the above
// version, these ones can be called during the load and execute phases.