diff options
author | Jeff King <peff@peff.net> | 2023-02-24 01:39:22 -0500 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2023-02-24 09:13:31 -0800 |
commit | c50dca2a18077306eb6796938d3d01c76590b4c6 (patch) | |
tree | 56b47fa0f7232df4b5b68b04ac48d8f802ce774e /builtin/rev-list.c | |
parent | 9ec03b59a8c4f5a0b4e666bd179a8eed71484825 (diff) | |
download | git-c50dca2a18077306eb6796938d3d01c76590b4c6.tar.gz |
list-objects: mark unused callback parameters
Our graph-traversal functions take callbacks for showing commits and
objects, but not all callbacks need each parameter. Likewise for the
similar traverse_bitmap_commit_list(), which has a different interface
but serves the same purpose. And the include_check mechanism, which
passes along a void pointer which is not always used.
Mark the unused ones to to make -Wunused-parameter happy.
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 | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/builtin/rev-list.c b/builtin/rev-list.c index d42db0b0cc..cceb5de975 100644 --- a/builtin/rev-list.c +++ b/builtin/rev-list.c @@ -362,11 +362,11 @@ static int show_bisect_vars(struct rev_list_info *info, int reaches, int all) static int show_object_fast( const struct object_id *oid, - enum object_type type, - int exclude, - uint32_t name_hash, - struct packed_git *found_pack, - off_t found_offset) + enum object_type type UNUSED, + int exclude UNUSED, + uint32_t name_hash UNUSED, + struct packed_git *found_pack UNUSED, + off_t found_offset UNUSED) { fprintf(stdout, "%s\n", oid_to_hex(oid)); return 1; |