From b88ee1c13fa99ec2ed5126b18418bace1f95ed36 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 27 Oct 2022 16:01:43 +0200 Subject: Suppress (potential) bogus GCC 12 -Wrestrict warnings --- bbot/worker/worker.cxx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'bbot/worker') diff --git a/bbot/worker/worker.cxx b/bbot/worker/worker.cxx index e12ed9a..4b1a16d 100644 --- a/bbot/worker/worker.cxx +++ b/bbot/worker/worker.cxx @@ -500,7 +500,7 @@ run_cmd (step_id step, if (!pr.wait ()) { const process_exit& e (*pr.exit); - add (name + " " + to_string (e)); + add (name + ' ' + to_string (e)); r = e.normal () ? result_status::error : result_status::abnormal; } @@ -907,7 +907,7 @@ build (size_t argc, const char* argv[]) if (!bkp_step && !bkp_status) { fail_operation (add_result ("configure"), - "invalid interactive build breakpoint '" + b + "'", + "invalid interactive build breakpoint '" + b + '\'', result_status::abort); break; @@ -1428,7 +1428,7 @@ build (size_t argc, const char* argv[]) optional bootstrap_import; if (bootstrap) - bootstrap_import = "!config.import." + pkg_var + "=" + + bootstrap_import = "!config.import." + pkg_var + '=' + (rwd / main_pkg_conf).string (); // Configure. @@ -1628,7 +1628,7 @@ build (size_t argc, const char* argv[]) trace, r.log, wre, bkp_step, bkp_status, last_cmd, "-V", - "create(" + module_conf.representation () + "," + mods + ")", + "create(" + module_conf.representation () + ',' + mods + ')', "config.config.load=~build2", "config.config.persist+='config.*'@unused=drop", eas, @@ -1676,7 +1676,7 @@ build (size_t argc, const char* argv[]) trace, r.log, wre, bkp_step, bkp_status, last_cmd, "-V", - "create(" + install_conf.representation () + "," + mods + ")", + "create(" + install_conf.representation () + ',' + mods + ')', "config.config.load=~build2", "config.config.persist+='config.*'@unused=drop", step_args (env_args, s), @@ -2293,7 +2293,7 @@ build (size_t argc, const char* argv[]) } else fail_operation (r, - "unexpected bpkg output:\n'" + s + "'", + "unexpected bpkg output:\n'" + s + '\'', result_status::error); } @@ -2724,7 +2724,7 @@ build (size_t argc, const char* argv[]) trace, r.log, wre, bkp_step, bkp_status, last_cmd, "-V", - "create('" + out_dir.representation () + "'" + mods + ")", + "create('" + out_dir.representation () + '\'' + mods + ')', step_args (env_args, s, f), step_args (config_args, s, f)); -- cgit v1.1