From 32e5848f345b2a0135989e0e6de85445998c9629 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 30 Jul 2014 22:01:40 +0200 Subject: util/Error: add "printf" attributes --- src/util/Error.hxx | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/util/Error.hxx') 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 -- cgit v1.2.3