Commit b6b0fe39 authored by Dominik Charousset's avatar Dominik Charousset

Fix unused argument warning

parent 9aa86106
...@@ -171,8 +171,8 @@ class event_based_resume { ...@@ -171,8 +171,8 @@ class event_based_resume {
} }
} }
catch (std::exception& e) { catch (std::exception& e) {
CAF_LOG_INFO("actor died because of an exception, what() = " CAF_LOG_INFO("actor died because of an exception, what: " << e.what());
<< e.what()); static_cast<void>(e); // keep compiler happy when not logging
if (d->exit_reason() == exit_reason::not_exited) { if (d->exit_reason() == exit_reason::not_exited) {
d->quit(exit_reason::unhandled_exception); d->quit(exit_reason::unhandled_exception);
} }
......
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