aboutsummaryrefslogtreecommitdiff
path: root/trace2.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2024-06-17 15:55:55 -0700
committerJunio C Hamano <gitster@pobox.com>2024-06-17 15:55:55 -0700
commitcff3b034d5e75c84725823290afed62c93bc2317 (patch)
tree6a4ca6ecc757d40a079bc25d5094a68cb4c6c406 /trace2.h
parent40a163f217da87b735f2f6b1916a81c4d21689c8 (diff)
parent99c7de732e1ea71804d7643dd121fdde4c181f76 (diff)
downloadgit-cff3b034d5e75c84725823290afed62c93bc2317.tar.xz
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 'trace2.h')
-rw-r--r--trace2.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/trace2.h b/trace2.h
index 1f0669bbd2..19e04bf040 100644
--- a/trace2.h
+++ b/trace2.h
@@ -390,6 +390,7 @@ void trace2_region_enter_printf_va_fl(const char *file, int line,
trace2_region_enter_printf_va_fl(__FILE__, __LINE__, (category), \
(label), (repo), (fmt), (ap))
+__attribute__((format (printf, 6, 7)))
void trace2_region_enter_printf_fl(const char *file, int line,
const char *category, const char *label,
const struct repository *repo,