From a9f5db1a8702d85154d76257046ad68af0607160 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 13 Jul 2022 12:24:13 +0200 Subject: 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. --- libbuild2/algorithm.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. // -- cgit v1.1