aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-07-30 22:01:40 +0200
committerMax Kellermann <max@duempel.org>2014-07-30 22:02:46 +0200
commit32e5848f345b2a0135989e0e6de85445998c9629 (patch)
tree34560bc895f2cfc4a0d592335986830f28de6f4e /src
parentbe36c0769a813141db128a3ba9ab072b3f321039 (diff)
downloadmpd-32e5848f345b2a0135989e0e6de85445998c9629.tar.gz
mpd-32e5848f345b2a0135989e0e6de85445998c9629.tar.xz
mpd-32e5848f345b2a0135989e0e6de85445998c9629.zip
util/Error: add "printf" attributes
Diffstat (limited to 'src')
-rw-r--r--src/util/Error.hxx5
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