From e7e558bd258e42c8092f8e229ef6ee140dbdc3c7 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 30 Nov 2021 13:21:12 +0200 Subject: Get rid of unused lambda captures --- libbuild2/adhoc-rule-buildscript.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'libbuild2/adhoc-rule-buildscript.cxx') diff --git a/libbuild2/adhoc-rule-buildscript.cxx b/libbuild2/adhoc-rule-buildscript.cxx index db3be30..0648c3d 100644 --- a/libbuild2/adhoc-rule-buildscript.cxx +++ b/libbuild2/adhoc-rule-buildscript.cxx @@ -571,7 +571,7 @@ namespace build2 // size_t& skip_count (mdb->skip_count); - auto add = [this, &trace, what, + auto add = [&trace, what, a, &bs, &t, &pts, pts_n = mdb->pts_n, &byp, &map_ext, &skip_count, mt] (path fp) -> optional @@ -618,7 +618,7 @@ namespace build2 }; auto df = make_diag_frame ( - [this, &ll, &t] (const diag_record& dr) + [&ll, &t] (const diag_record& dr) { if (verb != 0) dr << info (ll) << "while extracting dynamic dependencies for " @@ -826,7 +826,7 @@ namespace build2 // // Note that fp is expected to be absolute. // - auto add = [this, &trace, what, + auto add = [&trace, what, a, &bs, &t, &pts, pts_n = md.pts_n, &byp, &map_ext, &dd] (path fp) { @@ -863,7 +863,7 @@ namespace build2 }; auto df = make_diag_frame ( - [this, &ll, &t] (const diag_record& dr) + [&ll, &t] (const diag_record& dr) { if (verb != 0) dr << info (ll) << "while extracting dynamic dependencies for " -- cgit v1.1