From 3cabfb344b820586bb7c43212340f64246cde8eb Mon Sep 17 00:00:00 2001 From: Jonas Devlieghere Date: Mon, 16 Sep 2019 22:55:49 +0000 Subject: [PATCH] Fix warning: lambda capture 'temp_file_path' is not used llvm-svn: 372044 --- lldb/tools/lldb-server/lldb-platform.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lldb/tools/lldb-server/lldb-platform.cpp b/lldb/tools/lldb-server/lldb-platform.cpp index 54342b5..a6fb563 100644 --- a/lldb/tools/lldb-server/lldb-platform.cpp +++ b/lldb/tools/lldb-server/lldb-platform.cpp @@ -109,8 +109,7 @@ static Status save_socket_id_to_file(const std::string &socket_id, if (auto Err = handleErrors(llvm::writeFileAtomically( temp_file_path, temp_file_spec.GetPath(), socket_id), - [&status, &temp_file_path, - &file_spec](const AtomicFileWriteError &E) { + [&status, &file_spec](const AtomicFileWriteError &E) { std::string ErrorMsgBuffer; llvm::raw_string_ostream S(ErrorMsgBuffer); E.log(S); -- 2.7.4