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
@ -1385,8 +1385,11 @@ struct grab_nth_branch_switch_cbdata {
|
||||
struct strbuf *sb;
|
||||
};
|
||||
|
||||
static int grab_nth_branch_switch(struct object_id *ooid, struct object_id *noid,
|
||||
const char *email, timestamp_t timestamp, int tz,
|
||||
static int grab_nth_branch_switch(struct object_id *UNUSED(ooid),
|
||||
struct object_id *UNUSED(noid),
|
||||
const char *UNUSED(email),
|
||||
timestamp_t UNUSED(timestamp),
|
||||
int UNUSED(tz),
|
||||
const char *message, void *cb_data)
|
||||
{
|
||||
struct grab_nth_branch_switch_cbdata *cb = cb_data;
|
||||
|
Reference in New Issue
Block a user