diff options
author | Jason Molenda <jmolenda@apple.com> | 2011-09-20 21:44:10 +0000 |
---|---|---|
committer | Jason Molenda <jmolenda@apple.com> | 2011-09-20 21:44:10 +0000 |
commit | fd54b368ea4d1bd481ac4d203362c2a5556418d0 (patch) | |
tree | 3adaaf91c485565d39e32762804b69439977c8fd /lldb/source/Expression/ClangFunction.cpp | |
parent | 33e91a6cf7a66b83b29e842268bf9b0a1ef14711 (diff) | |
download | bcm5719-llvm-fd54b368ea4d1bd481ac4d203362c2a5556418d0.tar.gz bcm5719-llvm-fd54b368ea4d1bd481ac4d203362c2a5556418d0.zip |
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
Diffstat (limited to 'lldb/source/Expression/ClangFunction.cpp')
-rw-r--r-- | lldb/source/Expression/ClangFunction.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Expression/ClangFunction.cpp b/lldb/source/Expression/ClangFunction.cpp index a8e5a5ce444..21acb5b3318 100644 --- a/lldb/source/Expression/ClangFunction.cpp +++ b/lldb/source/Expression/ClangFunction.cpp @@ -176,7 +176,7 @@ ClangFunction::CompileFunction (Stream &errors) } else { - errors.Printf("Could not determine type of input value %d.", i); + errors.Printf("Could not determine type of input value %lu.", i); return 1; } } @@ -335,7 +335,7 @@ ClangFunction::WriteFunctionArguments (ExecutionContext &exe_ctx, size_t num_args = arg_values.GetSize(); if (num_args != m_arg_values.GetSize()) { - errors.Printf ("Wrong number of arguments - was: %d should be: %d", num_args, m_arg_values.GetSize()); + errors.Printf ("Wrong number of arguments - was: %lu should be: %lu", num_args, m_arg_values.GetSize()); return false; } |