]> git.ipfire.org Git - thirdparty/git.git/commit
gc: drop MAYBE_UNUSED annotation from used parameter
authorJeff King <peff@peff.net>
Thu, 29 Aug 2024 20:08:33 +0000 (16:08 -0400)
committerJunio C Hamano <gitster@pobox.com>
Thu, 29 Aug 2024 20:56:46 +0000 (13:56 -0700)
commit3cdddcf6b220cb6097b00ff7df1e4d0277ec43c4
tree316c8eb898e53d5b6b735100b0f6f99344923cdf
parent4590f2e9412378c61eac95966709c78766d326ba
gc: drop MAYBE_UNUSED annotation from used parameter

The "opts" parameter is always used, so marking it with MAYBE_UNUSED is
just confusing.

This annotation goes back to 41abfe15d9 (maintenance: add pack-refs
task, 2021-02-09), when it really was unused. Back then we did not have
the UNUSED macro that would complain if the code changed to use the
parameter. So when we started using it in bfc2f9eb8e (builtin/gc:
forward git-gc(1)'s `--auto` flag when packing refs, 2024-03-25), nobody
noticed.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/gc.c