diff options
author | Ævar Arnfjörð Bjarmason <avarab@gmail.com> | 2021-07-13 10:05:19 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-07-13 15:20:20 -0700 |
commit | 75d31ceec5870c94c934264b7a9afe029b787410 (patch) | |
tree | d92281cb411e665cc57f8728489122236e372706 /cache.h | |
parent | *.c static functions: add missing __attribute__((format)) (diff) | |
download | tgif-75d31ceec5870c94c934264b7a9afe029b787410.tar.xz |
*.h: add a few missing __attribute__((format))
Add missing format attributes to API 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 'cache.h')
-rw-r--r-- | cache.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -1385,6 +1385,7 @@ enum get_oid_result { }; int repo_get_oid(struct repository *r, const char *str, struct object_id *oid); +__attribute__((format (printf, 2, 3))) int get_oidf(struct object_id *oid, const char *fmt, ...); int repo_get_oid_commit(struct repository *r, const char *str, struct object_id *oid); int repo_get_oid_committish(struct repository *r, const char *str, struct object_id *oid); |