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>
This commit is contained in:
committed by
Junio C Hamano
parent
c50dca2a18
commit
be252d3349
@ -2644,7 +2644,8 @@ int for_each_loose_object(each_loose_object_fn cb, void *data,
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int append_loose_object(const struct object_id *oid, const char *path,
|
||||
static int append_loose_object(const struct object_id *oid,
|
||||
const char *path UNUSED,
|
||||
void *data)
|
||||
{
|
||||
oidtree_insert(data, oid);
|
||||
|
||||
Reference in New Issue
Block a user