diff options
Diffstat (limited to 'lldb/source/Core')
-rw-r--r-- | lldb/source/Core/Address.cpp | 1 | ||||
-rw-r--r-- | lldb/source/Core/InputReader.cpp | 1 | ||||
-rw-r--r-- | lldb/source/Core/ValueObject.cpp | 3 |
3 files changed, 1 insertions, 4 deletions
diff --git a/lldb/source/Core/Address.cpp b/lldb/source/Core/Address.cpp index 057b8567a4d..7119b71987f 100644 --- a/lldb/source/Core/Address.cpp +++ b/lldb/source/Core/Address.cpp @@ -628,7 +628,6 @@ Address::Dump (Stream *s, ExecutionContextScope *exe_scope, DumpStyle style, Dum if (so_addr.IsSectionOffset()) { lldb_private::SymbolContext pointer_sc; - Target *target = exe_scope->CalculateTarget(); if (target) { target->GetImages().ResolveSymbolContextForAddress (so_addr, diff --git a/lldb/source/Core/InputReader.cpp b/lldb/source/Core/InputReader.cpp index afda9fa25f6..bc1dc49b2fd 100644 --- a/lldb/source/Core/InputReader.cpp +++ b/lldb/source/Core/InputReader.cpp @@ -196,7 +196,6 @@ InputReader::HandleRawBytes (const char *bytes, size_t bytes_len) { const char *line_start = bytes; const char *end_line = NULL; - const char *end = bytes + bytes_len; while (p < end) { const char ch = *p; diff --git a/lldb/source/Core/ValueObject.cpp b/lldb/source/Core/ValueObject.cpp index 4a1e002242e..c32bdc28148 100644 --- a/lldb/source/Core/ValueObject.cpp +++ b/lldb/source/Core/ValueObject.cpp @@ -540,7 +540,7 @@ ValueObject::SetValueFromCString (ExecutionContextScope *exe_scope, const char * lldb::Encoding encoding = Type::GetEncoding (GetOpaqueClangQualType(), count); char *end = NULL; - size_t byte_size = GetByteSize(); + const size_t byte_size = GetByteSize(); switch (encoding) { case eEncodingInvalid: @@ -580,7 +580,6 @@ ValueObject::SetValueFromCString (ExecutionContextScope *exe_scope, const char * case eEncodingIEEE754: { - const size_t byte_size = GetByteSize(); const off_t byte_offset = GetByteOffset(); uint8_t *dst = const_cast<uint8_t *>(m_data.PeekData(byte_offset, byte_size)); if (dst != NULL) |