Fixed clang warnings

This commit is contained in:
gabime
2018-08-13 09:21:47 +03:00
parent 8008d7fe53
commit 4456f96ae3
3 changed files with 4 additions and 5 deletions

View File

@@ -42,7 +42,7 @@ struct async_factory_impl
auto &registry_inst = details::registry::instance();
// create global thread pool if not already exists..
std::lock_guard<std::recursive_mutex>(registry_inst.tp_mutex());
std::lock_guard<std::recursive_mutex> lock(registry_inst.tp_mutex());
auto tp = registry_inst.get_tp();
if (tp == nullptr)
{