summaryrefslogtreecommitdiff
path: root/worktree.c
diff options
context:
space:
mode:
authorLibravatar Ævar Arnfjörð Bjarmason <avarab@gmail.com>2021-07-13 10:05:18 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2021-07-13 15:20:20 -0700
commit48ca53cac4a5bee2dee3a5f3d6550753bf696d28 (patch)
tree1ec36f9e4422ce21f9c3085c62066aa85530e52e /worktree.c
parentsequencer.c: move static function to avoid forward decl (diff)
downloadtgif-48ca53cac4a5bee2dee3a5f3d6550753bf696d28.tar.xz
*.c static functions: add missing __attribute__((format))
Add missing __attribute__((format)) function attributes to various "static" 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 'worktree.c')
-rw-r--r--worktree.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/worktree.c b/worktree.c
index 237517baee..092a4f92ad 100644
--- a/worktree.c
+++ b/worktree.c
@@ -265,6 +265,7 @@ const char *worktree_prune_reason(struct worktree *wt, timestamp_t expire)
}
/* convenient wrapper to deal with NULL strbuf */
+__attribute__((format (printf, 2, 3)))
static void strbuf_addf_gently(struct strbuf *buf, const char *fmt, ...)
{
va_list params;