From 2ad6aa134d9e8e755c8c738d0b51d72b0851c212 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 24 Jun 2019 11:25:05 +0200 Subject: Constrain access to options to build system driver main() only --- build2/function.test.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'build2/function.test.cxx') diff --git a/build2/function.test.cxx b/build2/function.test.cxx index a9ba7bb..b890bcd 100644 --- a/build2/function.test.cxx +++ b/build2/function.test.cxx @@ -36,7 +36,10 @@ namespace build2 int main (int, char* argv[]) { - init (argv[0], 1); // Fake build system driver, default verbosity. + // Fake build system driver, default verbosity. + // + init_diag (1); + init (argv[0]); reset (strings ()); // No command line variables. function_family f ("dummy"); -- cgit v1.1