[Sanitizer] Remove __attribute__((format))

llvm-svn: 158070
This commit is contained in:
Alexey Samsonov 2012-06-06 13:58:39 +00:00
parent 3de5d40f4d
commit d323f4e78e
3 changed files with 6 additions and 6 deletions

View File

@ -159,8 +159,8 @@ uptr ReadFileToBuffer(const char *file_name, char **buff,
void AppendToErrorMessageBuffer(const char *buffer);
// asan_printf.cc
void AsanPrintf(const char *format, ...) FORMAT(1, 2);
void AsanReport(const char *format, ...) FORMAT(1, 2);
void AsanPrintf(const char *format, ...);
void AsanReport(const char *format, ...);
// Don't use std::min and std::max, to minimize dependency on libstdc++.
template<class T> T Min(T a, T b) { return a < b ? a : b; }

View File

@ -35,9 +35,9 @@ void RawWrite(const char *buffer);
void *MmapOrDie(uptr size);
void UnmapOrDie(void *addr, uptr size);
void Printf(const char *format, ...) FORMAT(1, 2);
int SNPrintf(char *buffer, uptr length, const char *format, ...) FORMAT(3, 4);
void Report(const char *format, ...) FORMAT(1, 2);
void Printf(const char *format, ...);
int SNPrintf(char *buffer, uptr length, const char *format, ...);
void Report(const char *format, ...);
// Bit twiddling.
inline bool IsPowerOfTwo(uptr x) {

View File

@ -37,7 +37,7 @@
namespace __tsan {
void TsanPrintf(const char *format, ...) FORMAT(1, 2);
void TsanPrintf(const char *format, ...);
// FastState (from most significant bit):
// unused : 1