summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2010-07-09 23:04:08 +0000
committerEli Friedman <eli.friedman@gmail.com>2010-07-09 23:04:08 +0000
commit07a2437a91628d24ffb270f68a73cc448bcd9def (patch)
tree7643f71658da6526cc77a8610bbc10f92adfca5d
parent8878f87fb680a53cf870d335e062266beac7d8b8 (diff)
downloadbcm5719-llvm-07a2437a91628d24ffb270f68a73cc448bcd9def.tar.gz
bcm5719-llvm-07a2437a91628d24ffb270f68a73cc448bcd9def.zip
A few more misc warning fixes.
llvm-svn: 108030
-rw-r--r--lldb/source/Core/DataExtractor.cpp4
-rw-r--r--lldb/source/Interpreter/StateVariable.cpp2
-rw-r--r--lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugAranges.cpp2
3 files changed, 4 insertions, 4 deletions
diff --git a/lldb/source/Core/DataExtractor.cpp b/lldb/source/Core/DataExtractor.cpp
index 72d7d934054..0833758202d 100644
--- a/lldb/source/Core/DataExtractor.cpp
+++ b/lldb/source/Core/DataExtractor.cpp
@@ -1485,10 +1485,10 @@ DataExtractor::PutToLog
return start_offset;
uint32_t offset;
- uint32_t end_offset = offset + length;
+ uint32_t end_offset;
uint32_t count;
StreamString sstr;
- for (offset = start_offset, count = 0; ValidOffset(offset) && offset < end_offset; ++count)
+ for (offset = start_offset, end_offset = offset + length, count = 0; ValidOffset(offset) && offset < end_offset; ++count)
{
if ((count % num_per_line) == 0)
{
diff --git a/lldb/source/Interpreter/StateVariable.cpp b/lldb/source/Interpreter/StateVariable.cpp
index 3f3c3fdb1e0..ae84e1ba5a9 100644
--- a/lldb/source/Interpreter/StateVariable.cpp
+++ b/lldb/source/Interpreter/StateVariable.cpp
@@ -81,8 +81,8 @@ StateVariable::StateVariable
) :
m_name (name),
m_type (eTypeStringArray),
- m_help_text (help),
m_string_values(),
+ m_help_text (help),
m_verification_func_ptr (func_ptr)
{
if (args)
diff --git a/lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugAranges.cpp b/lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugAranges.cpp
index 3e5e25a040a..39c5a7fd189 100644
--- a/lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugAranges.cpp
+++ b/lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugAranges.cpp
@@ -89,7 +89,7 @@ public:
static void PrintRange(const DWARFDebugAranges::Range& range)
{
// Cast the address values in case the address type is compiled as 32 bit
- printf("0x%8.8x: [0x%8.8llx - 0x%8.8llx)\n", range.offset, (uint64_t)range.lo_pc, (uint64_t)range.hi_pc);
+ printf("0x%8.8x: [0x%8.8llx - 0x%8.8llx)\n", range.offset, (long long)range.lo_pc, (long long)range.hi_pc);
}
//----------------------------------------------------------------------
OpenPOWER on IntegriCloud