summaryrefslogtreecommitdiffstats
path: root/add-patch.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2024-06-18 00:55:55 +0200
committerJunio C Hamano <gitster@pobox.com>2024-06-18 00:55:55 +0200
commitcff3b034d5e75c84725823290afed62c93bc2317 (patch)
tree6a4ca6ecc757d40a079bc25d5094a68cb4c6c406 /add-patch.c
parentMerge branch 'ps/ref-storage-migration' (diff)
parent__attribute__: add a few missing format attributes (diff)
downloadgit-cff3b034d5e75c84725823290afed62c93bc2317.tar.xz
git-cff3b034d5e75c84725823290afed62c93bc2317.zip
Merge branch 'jc/varargs-attributes'
Varargs functions that are unannotated as printf-like or execl-like have been annotated as such. * jc/varargs-attributes: __attribute__: add a few missing format attributes __attribute__: mark some functions with LAST_ARG_MUST_BE_NULL __attribute__: remove redundant attribute declaration for git_die_config() __attribute__: trace2_region_enter_printf() is like "printf"
Diffstat (limited to 'add-patch.c')
-rw-r--r--add-patch.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/add-patch.c b/add-patch.c
index 814de57c4a..d8ea05ff10 100644
--- a/add-patch.c
+++ b/add-patch.c
@@ -299,6 +299,7 @@ static void err(struct add_p_state *s, const char *fmt, ...)
va_end(args);
}
+LAST_ARG_MUST_BE_NULL
static void setup_child_process(struct add_p_state *s,
struct child_process *cp, ...)
{