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.
git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@140185 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Commands/CommandObjectSource.cpp b/source/Commands/CommandObjectSource.cpp
index e6b98fa..aba27c1 100644
--- a/source/Commands/CommandObjectSource.cpp
+++ b/source/Commands/CommandObjectSource.cpp
@@ -389,7 +389,7 @@
sc_list.GetContextAtIndex (i, scratch_sc);
if (scratch_sc.function != NULL)
{
- s.Printf("\n%d: ", i);
+ s.Printf("\n%lu: ", i);
scratch_sc.function->Dump (&s, true);
}
}