diff options
author | Jeff King <peff@peff.net> | 2023-02-24 06:39:24 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2023-02-24 17:13:31 (GMT) |
commit | be252d3349f1a5fdf7aaf53390f3ce555b5de9d9 (patch) | |
tree | cbab0651cb209f42533cf15cd5a738eac71c617b /builtin/rev-list.c | |
parent | c50dca2a18077306eb6796938d3d01c76590b4c6 (diff) | |
download | git-be252d3349f1a5fdf7aaf53390f3ce555b5de9d9.zip git-be252d3349f1a5fdf7aaf53390f3ce555b5de9d9.tar.gz git-be252d3349f1a5fdf7aaf53390f3ce555b5de9d9.tar.bz2 |
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 'builtin/rev-list.c')
-rw-r--r-- | builtin/rev-list.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/builtin/rev-list.c b/builtin/rev-list.c index cceb5de..888ad6b 100644 --- a/builtin/rev-list.c +++ b/builtin/rev-list.c @@ -257,7 +257,8 @@ static inline void finish_object__ma(struct object *obj) } } -static int finish_object(struct object *obj, const char *name, void *cb_data) +static int finish_object(struct object *obj, const char *name UNUSED, + void *cb_data) { struct rev_list_info *info = cb_data; if (oid_object_info_extended(the_repository, &obj->oid, NULL, 0) < 0) { |