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/Expression/ClangUtilityFunction.cpp b/source/Expression/ClangUtilityFunction.cpp
index d079dc4..0d11c91 100644
--- a/source/Expression/ClangUtilityFunction.cpp
+++ b/source/Expression/ClangUtilityFunction.cpp
@@ -173,7 +173,7 @@
if (error_cstr && error_cstr[0])
error_stream.Printf ("error: %s\n", error_cstr);
else
- error_stream.Printf ("error: expression can't be interpreted or run\n", num_errors);
+ error_stream.Printf ("error: expression can't be interpreted or run\n");
return false;
}
}