[Lldb-commits] [lldb] r372044 - Fix warning: lambda capture 'temp_file_path' is not used

Jonas Devlieghere via lldb-commits lldb-commits at lists.llvm.org
Mon Sep 16 15:55:49 PDT 2019


Author: jdevlieghere
Date: Mon Sep 16 15:55:49 2019
New Revision: 372044

URL: http://llvm.org/viewvc/llvm-project?rev=372044&view=rev
Log:
Fix warning: lambda capture 'temp_file_path' is not used

Modified:
    lldb/trunk/tools/lldb-server/lldb-platform.cpp

Modified: lldb/trunk/tools/lldb-server/lldb-platform.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/tools/lldb-server/lldb-platform.cpp?rev=372044&r1=372043&r2=372044&view=diff
==============================================================================
--- lldb/trunk/tools/lldb-server/lldb-platform.cpp (original)
+++ lldb/trunk/tools/lldb-server/lldb-platform.cpp Mon Sep 16 15:55:49 2019
@@ -109,8 +109,7 @@ static Status save_socket_id_to_file(con
   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);




More information about the lldb-commits mailing list