]> git.ipfire.org Git - thirdparty/git.git/commit - builtin/index-pack.c
*.c static functions: don't forward-declare __attribute__
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Sat, 10 Jul 2021 08:47:27 +0000 (10:47 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 12 Jul 2021 19:09:53 +0000 (12:09 -0700)
commit103e02c7001f5c4989d56360c8cfc615f29fc9a7
treef8a92ec7655274714e2cbe11da04a2083208bddc
parentd486ca60a51c9cb1fe068803c3f540724e95e83a
*.c static functions: don't forward-declare __attribute__

9cf6d3357aa (Add git-index-pack utility, 2005-10-12) and
466dbc42f58 (receive-pack: Send internal errors over side-band #2,
2010-02-10) we added these static functions and forward-declared their
__attribute__((printf)).

I think this may have been to work around some compiler limitation at
the time, but in any case we have a lot of code that uses the briefer
way of declaring these that I'm using here, so if we had any such
issues with compilers we'd have seen them already.

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/index-pack.c
builtin/receive-pack.c