Skip to content

Commit 1fcddc0

Browse files
[lldb] Fix a warning
This patch fixes: lldb/source/Plugins/SystemRuntime/MacOSX/AbortWithPayloadFrameRecognizer.cpp:177:10: error: unused variable 'str_len' [-Werror,-Wunused-variable]
1 parent 7a7cb81 commit 1fcddc0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lldb/source/Plugins/SystemRuntime/MacOSX/AbortWithPayloadFrameRecognizer.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,7 @@ AbortWithPayloadFrameRecognizer::RecognizeFrame(lldb::StackFrameSP frame_sp) {
174174
// For the reason string, we want the string not the address, so fetch that.
175175
std::string reason_string;
176176
Status error;
177-
size_t str_len =
178-
process->ReadCStringFromMemory(reason_addr, reason_string, error);
177+
process->ReadCStringFromMemory(reason_addr, reason_string, error);
179178
if (error.Fail()) {
180179
// Even if we couldn't read the string, return the other data.
181180
LLDB_LOG(log, "Couldn't fetch reason string: {0}.", error);

0 commit comments

Comments
 (0)