diff --git a/exemgr/main.cpp b/exemgr/main.cpp index 5015dcc6f..7dbe7f4d4 100644 --- a/exemgr/main.cpp +++ b/exemgr/main.cpp @@ -1088,7 +1088,7 @@ new_plan: // msgLog is global scope, and passed by copy, so, unclear // what the warning is about. destructing++; - std::thread bgdtor([jl, &jlMutex, &jlCleanupDone, stmtID, &li, msgLog, &destructing] { + std::thread bgdtor([jl, &jlMutex, &jlCleanupDone, stmtID, &li, &destructing] { std::unique_lock scoped(jlMutex); const_cast(jl).reset(); // this happens second; does real destruction logging::Message::Args args;