common: mark printf-style formatting for giterr_set

This commit is contained in:
Patrick Steinhardt 2016-11-14 09:54:08 +01:00
parent 19981467ea
commit 8effd26f59

View File

@ -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