]> gitweb.ps.run Git - ps-cgit/blobdiff - cgit.h
use __attribute__ to catch printf format mistakes
[ps-cgit] / cgit.h
diff --git a/cgit.h b/cgit.h
index 4090cd4f2fe114d6a70f9d138d9b67b3ad861d39..8f8428196ac2fe05e8141e0c893cc29ad362c18d 100644 (file)
--- a/cgit.h
+++ b/cgit.h
@@ -293,6 +293,7 @@ extern void cgit_diff_tree(const unsigned char *old_sha1,
 
 extern void cgit_diff_commit(struct commit *commit, filepair_fn fn);
 
+__attribute__((format (printf,1,2)))
 extern char *fmt(const char *format,...);
 
 extern struct commitinfo *cgit_parse_commit(struct commit *commit);