aboutsummaryrefslogtreecommitdiff
path: root/bbot
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2017-04-10 17:45:53 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2017-04-10 17:45:53 +0300
commitb95bdf4b619a59b11b84d8e60fc430ad283eef12 (patch)
tree79c123d385858b2281d60c3f8817c6d7f75be272 /bbot
parentf5a74f868477c484a58f9deb7435afa88efaefa0 (diff)
Fix machine manifest tests
Diffstat (limited to 'bbot')
-rw-r--r--bbot/manifest.cxx9
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.