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);


        
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to