[Lldb-commits] [lldb] 1fcddc0 - [lldb] Fix a warning
Kazu Hirata via lldb-commits
lldb-commits at lists.llvm.org
Fri Aug 2 11:10:29 PDT 2024
Author: Kazu Hirata
Date: 2024-08-02T11:10:21-07:00
New Revision: 1fcddc0dfa1b371bc0b278438d5f47cf8d03b511
URL: https://github.com/llvm/llvm-project/commit/1fcddc0dfa1b371bc0b278438d5f47cf8d03b511
DIFF: https://github.com/llvm/llvm-project/commit/1fcddc0dfa1b371bc0b278438d5f47cf8d03b511.diff
LOG: [lldb] Fix a warning
This patch fixes:
lldb/source/Plugins/SystemRuntime/MacOSX/AbortWithPayloadFrameRecognizer.cpp:177:10:
error: unused variable 'str_len' [-Werror,-Wunused-variable]
Added:
Modified:
lldb/source/Plugins/SystemRuntime/MacOSX/AbortWithPayloadFrameRecognizer.cpp
Removed:
################################################################################
diff --git a/lldb/source/Plugins/SystemRuntime/MacOSX/AbortWithPayloadFrameRecognizer.cpp b/lldb/source/Plugins/SystemRuntime/MacOSX/AbortWithPayloadFrameRecognizer.cpp
index 0d19d63fec0b8..d42e31c2aea0a 100644
--- a/lldb/source/Plugins/SystemRuntime/MacOSX/AbortWithPayloadFrameRecognizer.cpp
+++ b/lldb/source/Plugins/SystemRuntime/MacOSX/AbortWithPayloadFrameRecognizer.cpp
@@ -174,8 +174,7 @@ AbortWithPayloadFrameRecognizer::RecognizeFrame(lldb::StackFrameSP frame_sp) {
// For the reason string, we want the string not the address, so fetch that.
std::string reason_string;
Status error;
- size_t str_len =
- process->ReadCStringFromMemory(reason_addr, reason_string, error);
+ process->ReadCStringFromMemory(reason_addr, reason_string, error);
if (error.Fail()) {
// Even if we couldn't read the string, return the other data.
LLDB_LOG(log, "Couldn't fetch reason string: {0}.", error);
More information about the lldb-commits
mailing list