From 6ae9675fc04af104ef995f571d05300f18a9363d Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 19 Dec 2022 11:25:11 +0200 Subject: Fix clash of info variables in main() --- build2/b.cxx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/build2/b.cxx b/build2/b.cxx index 2f94bbc..1d6f231 100644 --- a/build2/b.cxx +++ b/build2/b.cxx @@ -476,13 +476,13 @@ main (int argc, char* argv[]) // Note: omit reserving anything for the info meta-operation since it // won't be loading the buildfiles and needs to be as fast as possible. // - bool info (bspec.size () == 1 && - bspec.front ().size () == 1 && - (bspec.front ().name == "info" || - (bspec.front ().name.empty () && - bspec.front ().front ().name == "info"))); + bool mo_info (bspec.size () == 1 && + bspec.front ().size () == 1 && + (bspec.front ().name == "info" || + (bspec.front ().name.empty () && + bspec.front ().front ().name == "info"))); - if (!info) + if (!mo_info) pctx->reserve (context::reserves { 30000 /* targets */, 1100 /* variables */}); @@ -901,7 +901,7 @@ main (int argc, char* argv[]) bootstrap_pre (rs, altn); bootstrap_src (rs, altn, nullopt /* amalgamation */, - !info || info_subprojects (mparams) /*subprojects*/); + !mo_info || info_subprojects (mparams) /*subprojects*/); // If this is a simple project, then implicitly load the test and // install modules. -- cgit v1.1