]> git.ipfire.org Git - thirdparty/git.git/blobdiff - sequencer.c
*.c static functions: add missing __attribute__((format))
[thirdparty/git.git] / sequencer.c
index c316d8374a7e437be5ef052b54d32d909a7e6d33..7f07cd00f3f20ab3dc0c508653ac28bdd8e8b8c1 100644 (file)
@@ -3521,6 +3521,7 @@ static int do_exec(struct repository *r, const char *command_line)
        return status;
 }
 
+__attribute__((format (printf, 2, 3)))
 static int safe_append(const char *filename, const char *fmt, ...)
 {
        va_list ap;
@@ -3598,6 +3599,7 @@ static int do_label(struct repository *r, const char *name, int len)
        return ret;
 }
 
+__attribute__((format (printf, 3, 4)))
 static const char *reflog_message(struct replay_opts *opts,
        const char *sub_action, const char *fmt, ...)
 {