diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2016-07-22 12:47:21 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2016-07-23 20:13:21 +0300 |
commit | 2d9579da2144b2a8d67ea1d05fde96ec9d365944 (patch) | |
tree | b4e033f0e8284309efeecd68ba1e9cd70dc75220 /build2/cxx/common.cxx | |
parent | 3425432752d362341b8e39cd319d7f3c56aef169 (diff) |
Adapt to fdstream extension
Diffstat (limited to 'build2/cxx/common.cxx')
-rw-r--r-- | build2/cxx/common.cxx | 5 |
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) { |