From 668141bba74248d25a4ecc54d2d201ed2e653e3d Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 15 Oct 2019 10:33:00 +0200 Subject: Remove no longer used lambda capture --- libbuild2/cc/compile-rule.cxx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'libbuild2/cc/compile-rule.cxx') diff --git a/libbuild2/cc/compile-rule.cxx b/libbuild2/cc/compile-rule.cxx index 9a534c7..c29769f 100644 --- a/libbuild2/cc/compile-rule.cxx +++ b/libbuild2/cc/compile-rule.cxx @@ -2546,8 +2546,6 @@ namespace build2 dr << info << "while extracting header dependencies from " << src; }); - const scope& rs (*bs.root_scope ()); - // Preprocesor mode that preserves as much information as possible while // still performing inclusions. Also serves as a flag indicating whether // this compiler uses the separate preprocess and compile setup. @@ -2749,8 +2747,7 @@ namespace build2 // pointer to the temporary file path otherwise. // auto init_args = [a, &t, ot, li, reprocess, - &src, &md, &psrc, &sense_diag, &mod_mapper, - &rs, &bs, + &src, &md, &psrc, &sense_diag, &mod_mapper, &bs, pp, &env, &args, &args_gen, &args_i, &out, &drm, &so_map, this] (bool& gen) -> const path* -- cgit v1.1