diff options
| author | Junio C Hamano <gitster@pobox.com> | 2024-06-17 15:55:55 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2024-06-17 15:55:55 -0700 |
| commit | cff3b034d5e75c84725823290afed62c93bc2317 (patch) | |
| tree | 6a4ca6ecc757d40a079bc25d5094a68cb4c6c406 /mem-pool.h | |
| parent | 40a163f217da87b735f2f6b1916a81c4d21689c8 (diff) | |
| parent | 99c7de732e1ea71804d7643dd121fdde4c181f76 (diff) | |
| download | git-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 'mem-pool.h')
| -rw-r--r-- | mem-pool.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/mem-pool.h b/mem-pool.h index d1c66413ec..321d86a63c 100644 --- a/mem-pool.h +++ b/mem-pool.h @@ -50,6 +50,7 @@ char *mem_pool_strndup(struct mem_pool *pool, const char *str, size_t len); /* * Allocate memory from the memory pool and format a string into it. */ +__attribute__((format (printf, 2, 3))) char *mem_pool_strfmt(struct mem_pool *pool, const char *fmt, ...); /* |
