aboutsummaryrefslogtreecommitdiff
path: root/build2/cxx/common.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'build2/cxx/common.cxx')
-rw-r--r--build2/cxx/common.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/build2/cxx/common.cxx b/build2/cxx/common.cxx
index 0b66eb5..ec724a5 100644
--- a/build2/cxx/common.cxx
+++ b/build2/cxx/common.cxx
@@ -18,7 +18,10 @@ namespace build2
lorder
link_order (scope& bs, otype ot)
{
- const char* var;
+ // Initialize to suppress 'may be used uninitialized' warning produced by
+ // MinGW GCC 5.4.0.
+ //
+ const char* var (nullptr);
switch (ot)
{