diff options
author | Max Kellermann <max@duempel.org> | 2014-07-30 22:01:40 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-07-30 22:02:46 +0200 |
commit | 32e5848f345b2a0135989e0e6de85445998c9629 (patch) | |
tree | 34560bc895f2cfc4a0d592335986830f28de6f4e /src/util | |
parent | be36c0769a813141db128a3ba9ab072b3f321039 (diff) | |
download | mpd-32e5848f345b2a0135989e0e6de85445998c9629.tar.gz mpd-32e5848f345b2a0135989e0e6de85445998c9629.tar.xz mpd-32e5848f345b2a0135989e0e6de85445998c9629.zip |
util/Error: add "printf" attributes
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/Error.hxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/util/Error.hxx b/src/util/Error.hxx index 898a8f1c1..803ec002a 100644 --- a/src/util/Error.hxx +++ b/src/util/Error.hxx @@ -151,13 +151,18 @@ public: message.insert(0, prefix); } + gcc_printf(2,3) void FormatPrefix(const char *fmt, ...); void SetErrno(int e); void SetErrno(); void SetErrno(int e, const char *prefix); void SetErrno(const char *prefix); + + gcc_printf(2,3) void FormatErrno(const char *prefix, ...); + + gcc_printf(3,4) void FormatErrno(int e, const char *prefix, ...); #ifdef WIN32 |