From 8effd26f598f8d2d24f023290f6f7e87be20aac5 Mon Sep 17 00:00:00 2001 From: Patrick Steinhardt Date: Mon, 14 Nov 2016 09:54:08 +0100 Subject: common: mark printf-style formatting for `giterr_set` --- src/common.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/common.h b/src/common.h index 51fb9186e..f12cc98cf 100644 --- a/src/common.h +++ b/src/common.h @@ -103,7 +103,8 @@ /** * Set the error message for this thread, formatting as needed. */ -void giterr_set(int error_class, const char *string, ...); + +void giterr_set(int error_class, const char *string, ...) GIT_FORMAT_PRINTF(2, 3); /** * Set the error message for a regex failure, using the internal regex -- cgit v1.2.1