summaryrefslogtreecommitdiff
path: root/quote.h
diff options
context:
space:
mode:
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>2021-07-13 10:05:19 +0200
committerJunio C Hamano <gitster@pobox.com>2021-07-13 15:20:20 -0700
commit75d31ceec5870c94c934264b7a9afe029b787410 (patch)
treed92281cb411e665cc57f8728489122236e372706 /quote.h
parent48ca53cac4a5bee2dee3a5f3d6550753bf696d28 (diff)
downloadgit-75d31ceec5870c94c934264b7a9afe029b787410.tar.gz
*.h: add a few missing __attribute__((format))
Add missing format attributes to API functions that take printf arguments. Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'quote.h')
-rw-r--r--quote.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/quote.h b/quote.h
index 768cc6338e..049d8dd0b3 100644
--- a/quote.h
+++ b/quote.h
@@ -31,6 +31,7 @@ struct strbuf;
void sq_quote_buf(struct strbuf *, const char *src);
void sq_quote_argv(struct strbuf *, const char **argv);
+__attribute__((format (printf, 2, 3)))
void sq_quotef(struct strbuf *, const char *fmt, ...);
/*