diff options
author | Jeff King <peff@peff.net> | 2023-02-24 09:39:24 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2023-02-24 20:13:31 +0300 |
commit | be252d3349f1a5fdf7aaf53390f3ce555b5de9d9 (patch) | |
tree | cbab0651cb209f42533cf15cd5a738eac71c617b /packfile.c | |
parent | c50dca2a18077306eb6796938d3d01c76590b4c6 (diff) |
for_each_object: mark unused callback parameters
The for_each_{loose,packed}_object interface uses callback functions,
but not every callback needs all of the parameters. Mark the unused ones
to satisfy -Wunused-parameter.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'packfile.c')
-rw-r--r-- | packfile.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packfile.c b/packfile.c index 79e21ab18e..4dc0e15aa5 100644 --- a/packfile.c +++ b/packfile.c @@ -2204,8 +2204,8 @@ int for_each_packed_object(each_packed_object_fn cb, void *data, } static int add_promisor_object(const struct object_id *oid, - struct packed_git *pack, - uint32_t pos, + struct packed_git *pack UNUSED, + uint32_t pos UNUSED, void *set_) { struct oidset *set = set_; |