Update command_line.cc, fixes #14

- error: lambda capture 'working_files' is not used
 - error: lambda capture 'config' is not used
This commit is contained in:
Abhinav Gauniyal 2017-11-17 15:00:58 +05:30 committed by Jacob Dufault
parent c7c6a8ed39
commit 27a00d7ad3

View File

@ -2004,7 +2004,7 @@ bool QueryDbMainLoop(Config* config,
}
ClangCompleteManager::OnComplete callback = std::bind(
[working_files, global_code_complete_cache,
[global_code_complete_cache,
non_global_code_complete_cache, is_global_completion,
existing_completion,
msg](const NonElidedVector<lsCompletionItem>& results,
@ -3011,7 +3011,7 @@ void RunQueryDbThread(const std::string& bin_name,
// |ipc| is connected to a server.
void LaunchStdinLoop(Config* config,
std::unordered_map<IpcId, Timer>* request_times) {
WorkThread::StartThread("stdin", [config, request_times]() {
WorkThread::StartThread("stdin", [request_times]() {
IpcManager* ipc = IpcManager::instance();
std::unique_ptr<BaseIpcMessage> message =