diff options
| author | Junio C Hamano <gitster@pobox.com> | 2021-07-28 13:17:59 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2021-07-28 13:17:59 -0700 |
| commit | dd6d3c90eeff56770f2f4b88fb61cc44bf01d890 (patch) | |
| tree | 55b66b254ad151323682e834c8eef5cf55eac6d5 /builtin/index-pack.c | |
| parent | c9d6d8a1938f86594b33785a8228d9f35ad457c8 (diff) | |
| parent | 927dc33070563d6646c903daf919dde80d8878d4 (diff) | |
| download | git-dd6d3c90eeff56770f2f4b88fb61cc44bf01d890.tar.gz | |
Merge branch 'ab/attribute-format'
Many "printf"-like helper functions we have have been annotated
with __attribute__() to catch placeholder/parameter mismatches.
* ab/attribute-format:
advice.h: add missing __attribute__((format)) & fix usage
*.h: add a few missing __attribute__((format))
*.c static functions: add missing __attribute__((format))
sequencer.c: move static function to avoid forward decl
*.c static functions: don't forward-declare __attribute__
Diffstat (limited to 'builtin/index-pack.c')
| -rw-r--r-- | builtin/index-pack.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/builtin/index-pack.c b/builtin/index-pack.c index 3fbc5d7077..8336466865 100644 --- a/builtin/index-pack.c +++ b/builtin/index-pack.c @@ -369,9 +369,7 @@ static void parse_pack_header(void) use(sizeof(struct pack_header)); } -static NORETURN void bad_object(off_t offset, const char *format, - ...) __attribute__((format (printf, 2, 3))); - +__attribute__((format (printf, 2, 3))) static NORETURN void bad_object(off_t offset, const char *format, ...) { va_list params; |
