diff options
author | Tarmigan Casebolt <tarmigan+git@gmail.com> | 2009-11-14 13:33:13 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-11-15 18:24:58 -0800 |
commit | 28bea9e53481fddcb12e63d8c049f0ff2917a573 (patch) | |
tree | 1f38ad659ae1b5af3ae05b788c4b6bebb49961f5 /builtin-upload-archive.c | |
parent | 77097faa5dc3da2947f4a4bdb6f8a7766f4ef89a (diff) | |
download | git-28bea9e53481fddcb12e63d8c049f0ff2917a573.tar.gz |
Check the format of more printf-type functions
We already have these checks in many printf-type functions that have
prototypes which are in header files. Add these same checks to some
more prototypes in header functions and to static functions in .c
files.
cc: Miklos Vajna <vmiklos@frugalware.org>
Signed-off-by: Tarmigan Casebolt <tarmigan+git@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin-upload-archive.c')
-rw-r--r-- | builtin-upload-archive.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/builtin-upload-archive.c b/builtin-upload-archive.c index c4cd1e1327..b2d12592a3 100644 --- a/builtin-upload-archive.c +++ b/builtin-upload-archive.c @@ -67,6 +67,7 @@ static int run_upload_archive(int argc, const char **argv, const char *prefix) return write_archive(sent_argc, sent_argv, prefix, 0); } +__attribute__((format (printf, 1, 2))) static void error_clnt(const char *fmt, ...) { char buf[1024]; |