From 4b7613b5bac8d54d369132cfaaefcc755310c207 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Mon, 31 Jan 2022 13:11:59 +0300 Subject: Fix compile-time error when build with clang --- bpkg/bpkg.cxx | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/bpkg/bpkg.cxx b/bpkg/bpkg.cxx index c1a4908..c674a44 100644 --- a/bpkg/bpkg.cxx +++ b/bpkg/bpkg.cxx @@ -389,19 +389,17 @@ init (const common_options& co, // @@ TODO: perhaps we should only do it for commands that need it? // { - using namespace build2; - // @@ TMP: pass proper values instead of dummies. // - init_diag (1); - init (nullptr, "bpkg" /*argv[0]*/); - - bin::build2_bin_load (); - cc::build2_cc_load (); - c::build2_c_load (); - cxx::build2_cxx_load (); - version::build2_version_load (); - in::build2_in_load (); + build2::init_diag (1); + build2::init (nullptr, "bpkg" /*argv[0]*/); + + build2::bin::build2_bin_load (); + build2::cc::build2_cc_load (); + build2::c::build2_c_load (); + build2::cxx::build2_cxx_load (); + build2::version::build2_version_load (); + build2::in::build2_in_load (); } return o; -- cgit v1.1