[Lldb-commits] [lldb] a37cb5e - [lldb-vscode] Avoid a -Wunused-but-set-variable warning. NFC.
Martin Storsjö via lldb-commits
lldb-commits at lists.llvm.org
Wed Mar 30 14:11:34 PDT 2022
Author: Martin Storsjö
Date: 2022-03-31T00:10:05+03:00
New Revision: a37cb5ece513cbed9059880a45838331460e42fb
URL: https://github.com/llvm/llvm-project/commit/a37cb5ece513cbed9059880a45838331460e42fb
DIFF: https://github.com/llvm/llvm-project/commit/a37cb5ece513cbed9059880a45838331460e42fb.diff
LOG: [lldb-vscode] Avoid a -Wunused-but-set-variable warning. NFC.
Differential Revision: https://reviews.llvm.org/D122710
Added:
Modified:
lldb/tools/lldb-vscode/lldb-vscode.cpp
Removed:
################################################################################
diff --git a/lldb/tools/lldb-vscode/lldb-vscode.cpp b/lldb/tools/lldb-vscode/lldb-vscode.cpp
index 28c0dfbac40f8..83a9762df6040 100644
--- a/lldb/tools/lldb-vscode/lldb-vscode.cpp
+++ b/lldb/tools/lldb-vscode/lldb-vscode.cpp
@@ -3246,7 +3246,6 @@ int main(int argc, char *argv[]) {
g_vsc.output.descriptor = StreamDescriptor::from_file(new_stdout_fd, false);
}
- uint32_t packet_idx = 0;
while (!g_vsc.sent_terminated_event) {
llvm::json::Object object;
lldb_vscode::PacketStatus status = g_vsc.GetNextObject(object);
@@ -3257,7 +3256,6 @@ int main(int argc, char *argv[]) {
if (!g_vsc.HandleObject(object))
return 1;
- ++packet_idx;
}
return EXIT_SUCCESS;
More information about the lldb-commits
mailing list