Skip to content

Commit 3cabfb3

Browse files
committed
Fix warning: lambda capture 'temp_file_path' is not used
llvm-svn: 372044
1 parent e63c676 commit 3cabfb3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lldb/tools/lldb-server/lldb-platform.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,7 @@ static Status save_socket_id_to_file(const std::string &socket_id,
109109
if (auto Err =
110110
handleErrors(llvm::writeFileAtomically(
111111
temp_file_path, temp_file_spec.GetPath(), socket_id),
112-
[&status, &temp_file_path,
113-
&file_spec](const AtomicFileWriteError &E) {
112+
[&status, &file_spec](const AtomicFileWriteError &E) {
114113
std::string ErrorMsgBuffer;
115114
llvm::raw_string_ostream S(ErrorMsgBuffer);
116115
E.log(S);

0 commit comments

Comments
 (0)