Commit 8effd26f598f8d2d24f023290f6f7e87be20aac5

Patrick Steinhardt 2016-11-14T09:54:08

common: mark printf-style formatting for `giterr_set`

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/src/common.h b/src/common.h
index 51fb918..f12cc98 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