A few more misc warning fixes.

llvm-svn: 108030
This commit is contained in:
Eli Friedman 2010-07-09 23:04:08 +00:00
parent 8878f87fb6
commit 07a2437a91
3 changed files with 4 additions and 4 deletions

View File

@ -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)
{

View File

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

View File

@ -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);
}
//----------------------------------------------------------------------