diff options
author | Ævar Arnfjörð Bjarmason <avarab@gmail.com> | 2021-07-13 10:05:18 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-07-13 15:20:20 -0700 |
commit | 48ca53cac4a5bee2dee3a5f3d6550753bf696d28 (patch) | |
tree | 1ec36f9e4422ce21f9c3085c62066aa85530e52e /ref-filter.c | |
parent | d4ac305073411bd70ae94e79c8fe8130a7d378aa (diff) |
*.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 'ref-filter.c')
-rw-r--r-- | ref-filter.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ref-filter.c b/ref-filter.c index 4db0e40ff4..f45d3a1b26 100644 --- a/ref-filter.c +++ b/ref-filter.c @@ -213,6 +213,7 @@ static int used_atom_cnt, need_tagged, need_symref; * Expand string, append it to strbuf *sb, then return error code ret. * Allow to save few lines of code. */ +__attribute__((format (printf, 3, 4))) static int strbuf_addf_ret(struct strbuf *sb, int ret, const char *fmt, ...) { va_list ap; |