util/Error: add "printf" attributes
This commit is contained in:
@@ -151,13 +151,18 @@ public:
|
|||||||
message.insert(0, prefix);
|
message.insert(0, prefix);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
gcc_printf(2,3)
|
||||||
void FormatPrefix(const char *fmt, ...);
|
void FormatPrefix(const char *fmt, ...);
|
||||||
|
|
||||||
void SetErrno(int e);
|
void SetErrno(int e);
|
||||||
void SetErrno();
|
void SetErrno();
|
||||||
void SetErrno(int e, const char *prefix);
|
void SetErrno(int e, const char *prefix);
|
||||||
void SetErrno(const char *prefix);
|
void SetErrno(const char *prefix);
|
||||||
|
|
||||||
|
gcc_printf(2,3)
|
||||||
void FormatErrno(const char *prefix, ...);
|
void FormatErrno(const char *prefix, ...);
|
||||||
|
|
||||||
|
gcc_printf(3,4)
|
||||||
void FormatErrno(int e, const char *prefix, ...);
|
void FormatErrno(int e, const char *prefix, ...);
|
||||||
|
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
|
Reference in New Issue
Block a user