mirror of
https://github.com/intel/llvm.git
synced 2026-01-16 05:32:28 +08:00
Update declarations for all functions/methods that accept printf-style
stdarg formats to use __attribute__ format so the compiler can flag incorrect uses. Fix all incorrect uses. Most of these are innocuous, a few were resulting in crashes. llvm-svn: 140185
This commit is contained in:
@@ -1018,7 +1018,7 @@ Thread::UpdateInstanceName ()
|
||||
if (name && name[0] != '\0')
|
||||
sstr.Printf ("%s", name);
|
||||
else if ((GetIndexID() != 0) || (GetID() != 0))
|
||||
sstr.Printf ("0x%4.4x", GetIndexID(), GetID());
|
||||
sstr.Printf ("0x%4.4x", GetIndexID());
|
||||
|
||||
if (sstr.GetSize() > 0)
|
||||
Thread::GetSettingsController()->RenameInstanceSettings (GetInstanceName().AsCString(), sstr.GetData());
|
||||
|
||||
Reference in New Issue
Block a user