From 27a00d7ad39f12557c8cd8bf0400357d4c715bf4 Mon Sep 17 00:00:00 2001 From: Abhinav Gauniyal Date: Fri, 17 Nov 2017 15:00:58 +0530 Subject: [PATCH] Update command_line.cc, fixes #14 - error: lambda capture 'working_files' is not used - error: lambda capture 'config' is not used --- src/command_line.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/command_line.cc b/src/command_line.cc index dd60bbf2..d735a2ac 100644 --- a/src/command_line.cc +++ b/src/command_line.cc @@ -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& 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* request_times) { - WorkThread::StartThread("stdin", [config, request_times]() { + WorkThread::StartThread("stdin", [request_times]() { IpcManager* ipc = IpcManager::instance(); std::unique_ptr message =