refs: mark unused reflog callback parameters
Functions used with for_each_reflog_ent() need to conform to a particular interface, but not every function needs all of the parameters. Mark the unused ones to make -Wunused-parameter happy. 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
63e14ee2d6
commit
c006e9fa59
5
commit.c
5
commit.c
@ -951,8 +951,9 @@ static void add_one_commit(struct object_id *oid, struct rev_collect *revs)
|
||||
}
|
||||
|
||||
static int collect_one_reflog_ent(struct object_id *ooid, struct object_id *noid,
|
||||
const char *ident, timestamp_t timestamp,
|
||||
int tz, const char *message, void *cbdata)
|
||||
const char *UNUSED(ident),
|
||||
timestamp_t UNUSED(timestamp), int UNUSED(tz),
|
||||
const char *UNUSED(message), void *cbdata)
|
||||
{
|
||||
struct rev_collect *revs = cbdata;
|
||||
|
||||
|
Reference in New Issue
Block a user