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
@@ -559,7 +559,7 @@ static int batch_object_cb(const struct object_id *oid, void *vdata)
|
||||
}
|
||||
|
||||
static int collect_loose_object(const struct object_id *oid,
|
||||
const char *path,
|
||||
const char *path UNUSED,
|
||||
void *data)
|
||||
{
|
||||
oid_array_append(data, oid);
|
||||
@@ -567,8 +567,8 @@ static int collect_loose_object(const struct object_id *oid,
|
||||
}
|
||||
|
||||
static int collect_packed_object(const struct object_id *oid,
|
||||
struct packed_git *pack,
|
||||
uint32_t pos,
|
||||
struct packed_git *pack UNUSED,
|
||||
uint32_t pos UNUSED,
|
||||
void *data)
|
||||
{
|
||||
oid_array_append(data, oid);
|
||||
@@ -591,7 +591,7 @@ static int batch_unordered_object(const struct object_id *oid,
|
||||
}
|
||||
|
||||
static int batch_unordered_loose(const struct object_id *oid,
|
||||
const char *path,
|
||||
const char *path UNUSED,
|
||||
void *data)
|
||||
{
|
||||
return batch_unordered_object(oid, NULL, 0, data);
|
||||
|
||||
Reference in New Issue
Block a user