]> 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 232099dba6bf759c28e62dccac46faf2288d0fe0..8f8428196ac2fe05e8141e0c893cc29ad362c18d 100644 (file)
--- a/cgit.h
+++ b/cgit.h
@@ -19,6 +19,7 @@
 #include <xdiff-interface.h>
 #include <xdiff/xdiff.h>
 #include <utf8.h>
+#include <notes.h>
 
 
 /*
@@ -292,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);