From a272fe79738537add3d4d99f1f1595578673ebe3 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Fri, 5 Jul 2024 17:49:01 +0300 Subject: Cleanup machine_header_manifest type --- bbot/agent/agent.cxx | 5 ++++- bbot/machine-manifest.hxx | 32 ++++++++++++++++---------------- bbot/worker/worker.cxx | 2 -- 3 files changed, 20 insertions(+), 19 deletions(-) diff --git a/bbot/agent/agent.cxx b/bbot/agent/agent.cxx index 0b57208..b6f1783 100644 --- a/bbot/agent/agent.cxx +++ b/bbot/agent/agent.cxx @@ -1117,7 +1117,10 @@ enumerate_machines (const dir_path& machines) machine_type::kvm, string ("de:ad:be:ef:de:ad"), nullopt, - strings ()}, + strings (), + nullopt, + nullopt, + nullopt}, toolchain_manifest {tc_id}, bootstrap_manifest {}}}); diff --git a/bbot/machine-manifest.hxx b/bbot/machine-manifest.hxx index d500957..b488425 100644 --- a/bbot/machine-manifest.hxx +++ b/bbot/machine-manifest.hxx @@ -40,26 +40,26 @@ namespace bbot strings unquoted_options () const; // Return empty if absent. - machine_manifest (std::string i, - std::string n, - std::string s, + machine_manifest (string i, + string n, + string s, machine_type t, optional m, optional o, - strings c) - : machine_header_manifest (std::move (i), - std::move (n), - std::move (s), - // - // @@ TMP AUXILIARY - // - nullopt /* role */, - nullopt /* ram_minimum */, - nullopt /* ram_maximum */), + strings c, + optional r, + optional rmn, + optional rmx) + : machine_header_manifest (move (i), + move (n), + move (s), + r, + rmn, + rmx), type (t), - mac (std::move (m)), - options (std::move (o)), - changes (std::move (c)) {} + mac (move (m)), + options (move (o)), + changes (move (c)) {} public: machine_manifest () = default; diff --git a/bbot/worker/worker.cxx b/bbot/worker/worker.cxx index 700ed79..2630928 100644 --- a/bbot/worker/worker.cxx +++ b/bbot/worker/worker.cxx @@ -5858,8 +5858,6 @@ build (size_t argc, const char* argv[]) // artifacts preparation for upload, then use this log to report the // error. Otherwise, add the new log for that. // - // @@ TMP: Apple Clang 14.0.3 ICE - // operation_result* pr (&rm.results.back ()); if (pr->operation != "upload") -- cgit v1.1