diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2017-04-10 17:45:53 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2017-04-10 17:45:53 +0300 |
commit | b95bdf4b619a59b11b84d8e60fc430ad283eef12 (patch) | |
tree | 79c123d385858b2281d60c3f8817c6d7f75be272 /bbot | |
parent | f5a74f868477c484a58f9deb7435afa88efaefa0 (diff) |
Fix machine manifest tests
Diffstat (limited to 'bbot')
-rw-r--r-- | bbot/manifest.cxx | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/bbot/manifest.cxx b/bbot/manifest.cxx index 52841f3..35e472c 100644 --- a/bbot/manifest.cxx +++ b/bbot/manifest.cxx @@ -625,8 +625,7 @@ namespace bbot throw parsing (p.name (), nv.name_line, nv.name_column, d); }; - auto bad_value = - [&p, &nv] (const string& d, size_t offset = 0) [[noreturn]] + auto bad_value = [&p, &nv] (const string& d, size_t offset = 0) { throw parsing (p.name (), nv.value_line, nv.value_column + offset, d); }; @@ -642,6 +641,12 @@ namespace bbot { bad_value ("invalid " + what); } + + // Can't be here. Would be redundant if it were possible to declare + // lambda with the [[noreturn]] attribute. Note that GCC (non-portably) + // supports that. + // + return result_status::abnormal; }; // Make sure this is the start and we support the version. |