mirror of
https://github.com/intel/llvm.git
synced 2026-01-22 15:41:35 +08:00
Fixed a ton of gcc compile warnings
Removed some unused variables, added some consts, changed some casts to const_cast. I don't think any of these changes are very controversial. Differential Revision: http://reviews.llvm.org/D9674 llvm-svn: 237218
This commit is contained in:
@@ -1299,13 +1299,11 @@ FormatEntity::Format (const Entry &entry,
|
||||
// Watch for the special "tid" format...
|
||||
if (entry.printf_format == "tid")
|
||||
{
|
||||
bool handled = false;
|
||||
Target &target = thread->GetProcess()->GetTarget();
|
||||
ArchSpec arch (target.GetArchitecture ());
|
||||
llvm::Triple::OSType ostype = arch.IsValid() ? arch.GetTriple().getOS() : llvm::Triple::UnknownOS;
|
||||
if ((ostype == llvm::Triple::FreeBSD) || (ostype == llvm::Triple::Linux))
|
||||
{
|
||||
handled = true;
|
||||
format = "%" PRIu64;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user