From 12d8a2cfcfa10d6de746a919dc995da30850f4ee Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 8 Sep 2020 09:34:09 +0200 Subject: Get rid of warning in static build --- libbuild2/module.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libbuild2/module.cxx b/libbuild2/module.cxx index ff705eb..bb471a4 100644 --- a/libbuild2/module.cxx +++ b/libbuild2/module.cxx @@ -44,6 +44,7 @@ namespace build2 // Sorted array of bundled modules (excluding core modules bundled with // libbuild2; see below). // +#if !defined(BUILD2_BOOTSTRAP) && !defined(LIBBUILD2_STATIC_BUILD) static const char* bundled_modules[] = { "bash", "bin", @@ -62,6 +63,7 @@ namespace build2 bundled_modules + sizeof (bundled_modules) / sizeof (*bundled_modules), mod); } +#endif // Note: also used by ad hoc recipes thus not static. // -- cgit v1.1