Commit 47903d5f authored by Dominik Charousset's avatar Dominik Charousset

Fix LGTM warnings

parent 99d1af2b
# LGTM file format: https://lgtm.com/help/lgtm/lgtm.yml-configuration-file
# Disable noisy/false alerts.
queries:
- exclude: cpp/use-of-goto
...@@ -18,6 +18,8 @@ struct unit_t : detail::comparable<unit_t> { ...@@ -18,6 +18,8 @@ struct unit_t : detail::comparable<unit_t> {
constexpr unit_t(const unit_t&) noexcept = default; constexpr unit_t(const unit_t&) noexcept = default;
constexpr unit_t& operator=(const unit_t&) noexcept = default;
template <class T> template <class T>
explicit constexpr unit_t(T&&) noexcept { explicit constexpr unit_t(T&&) noexcept {
// nop // nop
......
...@@ -108,8 +108,8 @@ void blocking_actor::launch(execution_unit*, bool, bool hide) { ...@@ -108,8 +108,8 @@ void blocking_actor::launch(execution_unit*, bool, bool hide) {
self->act(); self->act();
rsn = self->fail_state_; rsn = self->fail_state_;
} catch (...) { } catch (...) {
auto ptr = std::current_exception(); auto eptr = std::current_exception();
rsn = scheduled_actor::default_exception_handler(self, ptr); rsn = scheduled_actor::default_exception_handler(self, eptr);
} }
try { try {
self->on_exit(); self->on_exit();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment