aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2022-07-13 12:24:13 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2022-07-13 12:24:13 +0200
commita9f5db1a8702d85154d76257046ad68af0607160 (patch)
tree631b5423264a1f2ad1db74d921e9ae3a63b8c596
parent6f6ca2ffadd2545db67f6dd02d799fae259e43e8 (diff)
Work around "storing address of local variable" warning issued by GCC 12
The warning is issued inside the target_lock's move constructor so we sidestep the whole thing by avoiding the call to the move constructor.
-rw-r--r--libbuild2/algorithm.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/libbuild2/algorithm.cxx b/libbuild2/algorithm.cxx
index 843808d..e2873fb 100644
--- a/libbuild2/algorithm.cxx
+++ b/libbuild2/algorithm.cxx
@@ -1031,7 +1031,7 @@ namespace build2
}
static group_view
- resolve_members_impl (action a, const target& g, target_lock l)
+ resolve_members_impl (action a, const target& g, target_lock&& l)
{
// Note that we will be unlocked if the target is already applied.
//