[PATCH 11/22] daemon.c: use the FORMATPRINTF macro to declare the gcc function attribute 'format printf'
- From
Elia Pinto <gitter.spiros@gmail.com>
- Date
- Feb 11, 2016, 12:38 UTC
- Message-ID
- <1455194339-859-12-git-send-email-gitter.spiros@gmail.com>
- In-Reply-To
- <1455194339-859-1-git-send-email-gitter.spiros@gmail.com>
Use the new FORMATPRINTF macro (in git-compat-util.h) to declare the gcc function attribute 'format printf'
Signed-off-by: Elia Pinto <gitter.spiros@gmail.com> --- daemon.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/daemon.c b/daemon.c index 46b411c..b4a9207 100644 --- a/daemon.c +++ b/daemon.c @@ -95,7 +95,7 @@ static void logreport(int priority, const char *err, va_list params) } } -__attribute__((format (printf, 1, 2))) +FORMATPRINTF(1,2) static void logerror(const char *err, ...) { va_list params; @@ -104,7 +104,7 @@ static void logerror(const char *err, ...) va_end(params); } -__attribute__((format (printf, 1, 2))) +FORMATPRINTF(1,2) static void loginfo(const char *err, ...) { va_list params;
-- 2.5.0