Commit 32e5848f authored by Max Kellermann's avatar Max Kellermann

util/Error: add "printf" attributes

parent be36c076
...@@ -151,13 +151,18 @@ public: ...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment