diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2019-05-07 15:01:26 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2019-05-07 15:01:26 +0200 |
commit | 1b0efce7791d4d61aa57038edb30fb823ed48e21 (patch) | |
tree | de0cae5f0afa238dc1cd1686baba07bab626bad2 | |
parent | 8ceb809c28f663bb1473722de3c6a24319888e61 (diff) |
Work around issues in old compilers
-rw-r--r-- | build2/cc/compile-rule.cxx | 10 | ||||
-rw-r--r-- | build2/cc/parser.cxx | 2 |
2 files changed, 6 insertions, 6 deletions
diff --git a/build2/cc/compile-rule.cxx b/build2/cc/compile-rule.cxx index 9c8e376..96e2dc5 100644 --- a/build2/cc/compile-rule.cxx +++ b/build2/cc/compile-rule.cxx @@ -74,16 +74,16 @@ namespace build2 s += (ut == unit_type::module_impl ? '+' : '!'); } - for (const module_import& mi: mi.imports) + for (const module_import& i: mi.imports) { if (!s.empty ()) s += ' '; - if (mi.type == unit_type::module_header) s += '"'; - s += mi.name; - if (mi.type == unit_type::module_header) s += '"'; + if (i.type == unit_type::module_header) s += '"'; + s += i.name; + if (i.type == unit_type::module_header) s += '"'; - if (mi.exported) + if (i.exported) s += '*'; } diff --git a/build2/cc/parser.cxx b/build2/cc/parser.cxx index 6361c89..2a75597 100644 --- a/build2/cc/parser.cxx +++ b/build2/cc/parser.cxx @@ -21,7 +21,7 @@ namespace build2 lexer l (is, name); l_ = &l; - unit u {unit_type::non_modular, {}}; + unit u; u_ = &u; // If the source has errors then we want the compiler to issues the |