summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2016-11-14 09:54:08 +0100
committerPatrick Steinhardt <ps@pks.im>2016-11-14 09:54:08 +0100
commit8effd26f598f8d2d24f023290f6f7e87be20aac5 (patch)
tree0388febc3ec484fc375208325578262791e5b805
parent19981467ea416406503332539b7b97f0366247df (diff)
downloadlibgit2-8effd26f598f8d2d24f023290f6f7e87be20aac5.tar.gz
common: mark printf-style formatting for `giterr_set`
-rw-r--r--src/common.h3
1 files changed, 2 insertions, 1 deletions
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