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> {
constexpr unit_t(const unit_t&) noexcept = default;
constexpr unit_t& operator=(const unit_t&) noexcept = default;
template <class T>
explicit constexpr unit_t(T&&) noexcept {
// nop
......
......@@ -108,8 +108,8 @@ void blocking_actor::launch(execution_unit*, bool, bool hide) {
self->act();
rsn = self->fail_state_;
} catch (...) {
auto ptr = std::current_exception();
rsn = scheduled_actor::default_exception_handler(self, ptr);
auto eptr = std::current_exception();
rsn = scheduled_actor::default_exception_handler(self, eptr);
}
try {
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